I am trying to install TensorFlow on NVIDIA Drive PX2 as described here. In particular, I am following the instructions for installing TensorFlow 1.11.0 for Python 3.6. However, I am getting the following error message:
Complete output from command python setup.py egg_info:
This backport is meant only for Python 2.
It does not work on Python 3, and Python 3 users do not need it as the concurrent.futures package is available in the standard library.
For projects that work on both Python 2 and 3, the dependency needs to be conditional on the Python version, like so:
extras_require={':python_version == "2.7"': ['futures']}
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-szu10ohj/futures/
Any advice would be appreciated. Thanks a lot in advance!
You probably need to upgrade pip:
pip3 install -U pip
Related
I tried downloading the 'PyPortfolioOpt' package on my MacBook Pro (iOS 11.0.1) but it always shows an error.
I've downloaded the Xcode developer tools and already upgraded the latest pip3 setup-tools. I am using python 3.9.
The error:
1 error generated.
error: command '/usr/bin/gcc' failed with exit code 1
ERROR: Failed building wheel for cvxopt
Running setup.py clean for cvxopt
Failed to build cvxopt
Installing collected packages: cvxopt, PyPortfolioOpt
Running setup.py install for cvxopt ... error
ERROR: Command errored out with exit status 1:
For some reason, probably something to do with how new python 3.9 is and how little bug fixes have come out so far, python 3.9 didn't work for me at all. I have upgraded a few times before, but never did it result in as many bugs as when I tried installing python 3.9. I recommend firstly trying $ python3 -m pip install PyPortfolioOpt, and if that doesn't work go back to python 3.8 or 3.7, that's what I'm on now and everything works fine now for me.
How can I install derivatives of hachoir library like hachoir-core Or hachoir-metadata on GoogleColab? I tried this way !pip install hachoir-metadata but I got the error
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-install-8op487i8/hachoir-metadata/
!pip2 install hachoir-metadata works fine for me, and https://pypi.org/project/hachoir-metadata/ says "Last released in 2010" suggesting the package is incompatible with Python 3. Try changing your notebook setting to Python 2.
I am new to Python and I am trying to install recsys package.
http://ocelma.net/software/python-recsys/build/html/installation.html
For this i need to install some pre-requiste packages, so i have to run this using pip
pip install csc-pysparse networkx divisi2
But whenever i run this i get the following in logs
Collecting csc-pysparse
Using cached csc-pysparse-1.1.1.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\64\AppData\Local\Temp\pip-build-wn7_65_9\csc-pysparse\
setup.py", line 33
print 'setuptools module not found.'
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\i054564\
AppData\Local\Temp\pip-build-wn7_65_9\csc-pysparse\
I checked that setuptools exist in my python installation here
C:\Python34\lib\site-packages
I have ran everything from unstinalling setuptools to install it again, upgrade command, but it does not work.
Not able to figure out why setuptools is not found. Is it not found in the path of where pip resolves it from ?
cheers,
Saurav
The code triggering the error is Python 2-specific and is illegal in Python 3.
Apparently, csc-pysparse doesn't support Python 3 (its README only mentions 2.6) and looks abandoned (6 years since last commit).
Some guys out there suggest replacing it with SciPy.
The error is coming from the installation code of recsys package. In order to avoid this error, you need to install setuptools separately.
For debian machines, the below command will work.
sudo apt-get install python3-setuptools
For other machines, please checkout installation instructions at the link
Once setuptools package is installed, you can proceed with csc-pysparse installation.
I am trying to install saga-python (package for SAGA GIS) and cmd python keeps returning the same error: python setup.py egg_info failed with code 1 in C:\Users\MyUser\AppData\Local\Temp\pip-build-7uieglh9\saga-python. Any ideas why it occurs?
Also, tried a few tips from this question's answers:
Python pip install gives "Command "python setup.py egg_info" failed with error code 1" not working either.
Version is 3.5.2 and setuptools and ez_setup are allright.
Tried with easy_install as well. No results either, sais that the syntax is invalid.
Also tried with virtualenv and http://docs.python-guide.org/en/latest/dev/virtualenvs/. Error is caused by two different Python versions: 2.7 and 3.5.2. I cannot uninstall 2.7 (shell for some GIS software), but I need to make it work somehow.
This package only for python 2.X. See issue
I'm trying to install PyCrypto on an Ubuntu instance via Buildout (via easy_install) and I'm getting the following error:
Getting distribution for 'pycrypto>=1.9'.
Running easy_install:
/usr/bin/python "-S" "-c" "import sys,os;p = sys.path[:];import site;sys.path[:] = p; [sys.modules.pop(k) for k, v in sys.modules.items() if hasattr(v, '__path__') and len(v.__path__)==1 and not os.path.exists(os.path.join(v.__path__[0],'__init__.py'))];from setuptools.command.easy_install import main;main()" "-mUNxd" "/opt/rocktech/buildout/cache/eggs/tmppKIfK7" "-Z" "/opt/rocktech/buildout/cache/download/dist/pycrypto-2.4.tar.gz"
path=/opt/rocktech/buildout/cache/eggs/setuptools-0.6c12dev_r88846-py2.6.egg
Processing pycrypto-2.4.tar.gz
Running pycrypto-2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dD_8Pu/pycrypto- 2.4/egg-dist-tmp-_d3xDl
error: Setup script exited with error: src/config.h: No such file or directory
An error occurred when trying to install pycrypto 2.4. Look above this message for any errors that were output by easy_install.
While:
Installing django.
Getting distribution for 'pycrypto>=1.9'.
Error: Couldn't install: pycrypto 2.4
Any idea on what's causing this?
Notably, I had the same issue locally on Snow Leopard and I was able to fix it by downloading the code directly and running python manage.py build and python manage.py install by hand. I want to avoid that here because I'm deploying to a dozen servers.
Even with the newest pycrypto I keep having this problem, so I just run ./configure and the src/config.h is created, so now just run pip or, easy_install or, setup.py...
You can also download pycrypto-2.4.tar.gz unpack it and run (as root):
./configure
python setup.py install
After that pycrypto will be installed into /usr/lib/python2.7/site-packages/Crypto. I tested it on 'easy_install pysnmp'.
It appears this is an open issue. The workaround is to use pip instead or stick to PyCrypto 2.3. https://bugs.launchpad.net/pycrypto/+bug/881130
EDIT: This bug was fixed in PyCrypto 2.4.1.
Just as an update, PyCrypto has since resolved this issue as you can see from the ticket being marked "Fix Resolved": https://bugs.launchpad.net/pycrypto/+bug/881130. Just an FYI, in case someone comes across this later. This "should" be a non-issue now.