Repository: pythonnet/pythonnet

Issue #731: error: option --single-version-externally-managed not recognized
Created: 2018-09-05T04:37:15Z
Environment

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

Details


Describe what you were trying to get done.
Install pythonnet by following the instrucion from: https://github.com/QuantConnect/Lean/tree/master/Algorithm.Python


What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.


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
    ----------------------------------------

Duplicate issue #803: Can't install pythonnet with pip3 on Ubuntu 18.04
Created: 2019-01-12T20:41:09Z
Environment

Pythonnet version: 2.3.0
Python version: 3.6.7
Operating System: Ubuntu 18.04
Pip version is 9.0.1

Details

Describe what you were trying to get done.

pip install git+https://github.com/pythonnet/pythonnet

If there was a crash, please include the traceback here.

Installing collected packages: pythonnet
  Running setup.py install for pythonnet ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-lb3he7aj-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-r35d0s6y-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    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

Closing comment (2019-01-14T13:46:33Z): duplicate: #731