-
Notifications
You must be signed in to change notification settings - Fork 752
Failed building wheel #562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
please follow instruction for mac here: You probably need to install from master branch: |
I tried installing from master but I got the same error:
As for following the instructions in #465, which python points to the anaconda libraries but I can't find clr.so |
This is generic python problem. Try to follow this like threads https://stackoverflow.com/questions/14296531/what-does-error-option-single-version-externally-managed-not-recognized-ind |
pip install pip --upgrade
pip install setuptools --upgrade Should solve this issue |
We try to install pythonnet on Linux and upgrading pip and setuptools does not help: $ pip install --upgrade pip setuptools
Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
Downloading/unpacking setuptools from https://pypi.python.org/packages/bd/4c/b06ab3abfc8bc93b87b70f4cab22352c3c72deba7b71390d14bfffa97c85/setuptools-36.6.0-py2.py3-none-any.whl#md5=df531523e300bc3e6b9ce4451681912c
Installing collected packages: pip, setuptools
Found existing installation: pip 1.5.4
Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Found existing installation: setuptools 3.3
Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed pip setuptools
Cleaning up...
$ python --version
Python 2.7.6
$ pip --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
$ pip show setuptools
Name: setuptools
Version: 36.6.0
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License: UNKNOWN
Location: /usr/local/lib/python2.7/dist-packages
Requires:
$ pip install git+https://github.com/pythonnet/pythonnet
Collecting git+https://github.com/pythonnet/pythonnet
Cloning https://github.com/pythonnet/pythonnet to /tmp/pip-zf7XdG-build
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 /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-zf7XdG-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-aX1bur-record/install-record.txt --single-version-externally-managed --compile:
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
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-zf7XdG-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-aX1bur-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-zf7XdG-build/ What helped was another hint that we found in the thread @dmitriyse already mentioned: using $ pip install --egg git+https://github.com/pythonnet/pythonnet
DEPRECATION: --egg has been deprecated and will be removed in the future. This flag is mutually exclusive with large parts of pip, and actually using it invalidates pip's ability to manage the installation process.
Collecting git+https://github.com/pythonnet/pythonnet
Cloning https://github.com/pythonnet/pythonnet to /tmp/pip-EEz_4K-build
Installing collected packages: pythonnet
Running setup.py install for pythonnet ... done
Successfully installed pythonnet-2.4.0.dev0 However, the |
@hjaekel we are tracking this pip+git error in another issue: #555 Thanks for your efforts @hjaekel and @CodeProQuo, please don't forget to star this project! 👍 |
This completely broke my setup: ImportError: cannot import name main |
@phxn please read this thread below and this has nothing to do with pythonnet. But in general I agree that users should work in virtual environment, rather than messing with system python installation: |
Another way to resolve this is to download Windows SDK 10 (latest version). If this alone doesn't work then download Visual Studio 2019 (again whichever is the latest version). This updates the wheel process. |
Try downloading the wheel file from https://pypi.org/project/pythonnet/#modal-close pythonnet downloads. Make sure you download the correct version and use pip install . cp in the file name will give you the python version number it's compatible with. |
I wanted to install a venv for python3.8.2 and Building wheel for pandocfilters and others prdouced erros. Executing your steps and building the venv again solved my issue. |
I face the same error using Python 3.8.8 on Ubuntu 20.04.1
|
@raharth , from your log:
|
Well... I guess I'm sorry... you were perfectly right, thank you very much! |
Environment
Details
I'm trying to install pythonnet on my mac. I have pretty much the same issue as Error Building wheel #269, I even tried the solutions suggested there but they didn't work.
I ran the Pypi installation command in my terminal
gets me
The text was updated successfully, but these errors were encountered: