FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

error: option --single-version-externally-managed not recognized · Issue #731 · pythonnet/pythonnet · GitHub

Repository navigation

error: option --single-version-externally-managed not recognized #731

Closed

Description

Environment

  • Pythonnet version: latest mater from github
  • Python version: Pytnon 3.6.5:: Anaconda, Inc.
  • Operating System: osx 10.12.3

Details

Lean> python setup.py

  • Screen output:
    Python support in Lean with pythonnet
    =====================================

    Prerequisites:
        - Python 3.6 x64 with pip
        - LEAN: https://github.com/QuantConnect/Lean#installation-instructions
        - pkg-config: http://macappstore.org/pkg-config/
        - git

    It will update conda, pip, wheel, setuptools, pandas packages.
    

    Install/updates required packages
    ---------------------------------
    
[conda] Successfully installed/updated: setuptools, pip, pandas, wheel, conda

    Install/updates pythonnet
    -------------------------
    
Command "/Users/kevinyuan/works/quantconnect/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/9s/rdkm24152qq5tv0jg76pcmyc0000gn/T/pip-req-build-axne_ulw/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/9s/rdkm24152qq5tv0jg76pcmyc0000gn/T/pip-record-wq_0j0dj/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kevinyuan/works/quantconnect/include/site/python3.6/pythonnet" failed with error code 1 in /private/var/folders/9s/rdkm24152qq5tv0jg76pcmyc0000gn/T/pip-req-build-axne_ulw/
Collecting git+https://github.com/QuantConnect/pythonnet
  Cloning https://github.com/QuantConnect/pythonnet to /private/var/folders/9s/rdkm24152qq5tv0jg76pcmyc0000gn/T/pip-req-build-axne_ulw
Installing collected packages: pythonnet
  Running setup.py install for pythonnet: started
    Running setup.py install for pythonnet: finished with status 'error'
    Complete output from command /Users/kevinyuan/works/quantconnect/bin/python -u -c "import setuptools, tokenize;__file__=\'/private/var/folders/9s/rdkm24152qq5tv0jg76pcmyc0000gn/T/pip-req-build-axne_ulw/setup.py\';f=getattr(tokenize, \'open\', open)(__file__);code=f.read().replace(\'\\r\\n\', \'\\n\');f.close();exec(compile(code, __file__, \'exec\'))" install --record /private/var/folders/9s/rdkm24152qq5tv0jg76pcmyc0000gn/T/pip-record-wq_0j0dj/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kevinyuan/works/quantconnect/include/site/python3.6/pythonnet:
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help
    
    error: option --single-version-externally-managed not recognized
    ----------------------------------------

Activity

  1. den-run-ai commented on Sep 5, 2018

    Contributor

    @kevinyuan have you tried passing --egg option to pip?

  2. yok0 commented on Sep 10, 2018

    @denfromufa the --egg option has been deprecated and is no longer valid workaround. Im trying to install 'pythonnet' on macOS myself and have been unsuccessful for hours now.

    @kevinyuan solution to your issue is here:
    https://stackoverflow.com/questions/14296531/what-does-error-option-single-version-externally-managed-not-recognized-ind

  3. den-run-ai commented on Sep 10, 2018

    Contributor
  4. gdw2 commented on Oct 19, 2018

    I've tried the stackoverflow suggestions recommended by @yok0, namely updating wheel and setuputils, and am still getting the same error.

  5. den-run-ai commented on Oct 20, 2018

    Contributor

    @gdw2 at least you should be able to build/install from extracted pythonnet directory like described in wiki. PRs are welcome to get rid of --egg option. I think it got somehow unintentionally added in 2016-2017.

  6. eric-appion commented on Feb 21, 2020

    I'm not convinced that this problem has actually been resolved. On Windows 10, I have just installed Python 3.8.1, then upgraded pip, setuptools, and wheel to the latest versions. The "--egg" option has been removed, so I can't use that, and when I try "pip install pythonnet" I still get "error: option --single-version-externally-managed not recognized".

  7. onepip commented on Mar 13, 2020

    updating wheel and setuputils, and am still getting the same error.

  8. HunterTom94 commented on Mar 28, 2020

    I am using Python 3.8.2 on Win10. I am getting the same error as well.

  9. huska6 commented on Apr 3, 2020

    same for me Python 3.8.2. 64bit, Win10, all above tested, I still have this problem.

  10. locked as off topic and limited conversation to collaborators on Apr 3, 2020
  11. filmor commented on Apr 3, 2020

    Member

    Python 3.8 is not yet supported.

  12. reopened this on May 5, 2020
  13. lostmsu commented on May 5, 2020

    Member

    This happens in conda envs with 3.7 and 3.6 too.

  14. filmor commented on Jun 11, 2020

    Member

    The problem happens in some environments because we conditionally require pycparser (i.e. it's not usually installed with pip install pythonnet but required whenever the DLL/SO is not one for which we provide the interop*.cs in our repo). It happened in Python 3.8 while it was unsupported and it happens in conda as they always use the m variant.

    I'll fix this by always requiring pycparser in the sdist.

  15. filmor commented on Jun 11, 2020

    Member

    This particular issue on the other hand is with Quantconnect's fork of pythonnet, I won't provide any support for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL