I am trying to install scikit-image library in python 3.4.4on windows. I am using the following command:
pip install scikit-image
I am installing it in the following path
C:\Python34\Scripts
It's not working showing the following error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Usman\AppData\Local\Temp\pip-build-utv6_a2u\scikit-image\
I tried also installing it through the .whl file,, but still it's not working.
Pip version is
pip 9.0.1
Please tell me what should I do?
Try to run one of the following and than try to install again the requested library.
pip install --upgrade setuptools or easy_install -U setuptools
As setuptools contains a lot of important files including egg files, it can cause problems when it's not updated\installed.
Related
I've been trying to install kivy on windows10 machine and I did not get an expected output, instead, I got a series of weird error messages. First I ran the following commands:
python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy.deps.gstreamer
python -m pip install kivy.deps.angle
python -m pip install pygame
And as far as I know, everything went right.
After that, I ran this command: python -m pip install https://github.com/kivy/kivy/archive/master.zip
Command output helped me break down the process of executing it.
First I got an error message while "Getting requirements to build wheel".
error message:
I got this error while "Preparing wheel metadata" and "Building wheel for Kivy (PEP 517)" as well. I think that it is worth mentioning that every time I said that error occurred, it occurred twice, one after another.
After that, I got a huge error:
You can download the test file with an error message on this link: https://filesend.standardnotes.org/send/BPQTjNM3aiUyRXOtfA3A#ZGI2ZDUzMWU2MmYzNTlhNTVlODEw
Note: All the commands that I executed were executed in cmd ran by the administrator.
If anyone can explain to me what is going on I would highly appreciate it!
Going by related issues here - ERROR: Could not build wheels for pendulum which use PEP 517 and cannot be installed directly and pip failing to build wheels for scipy
The answers seem to suggest that downgrading pip version will likely solve the problem. But before that please try
pip install --upgrade pip setuptools wheel
Instead of
python -m pip install --upgrade pip wheel setuptools
and see if it solves. If not, downgrade your pip by doing
python -m pip install --force-reinstall pip==18.1
If none of these work then your only viable solution is to use Kivy within Anaconda. You can see more on installation from here.
If I am not mistaken, this error means that you are trying to run 64-bit application on a 32-bit system. Install python version which corresponds to your OS, and then try again.
Also, make sure you have the newest version of C++ Redistributable installed.
I'm new to Python and have been trying to install Jupyter packages with pip.
My command line throws me this Exception
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\TOSHIB~1\AppData\Local\Temp\pip-install-spdc68do\tornado\
Happens when I do pip install jupyter. How can I solve this?
I already did python -m pip install --upgrade pip and pip install --upgrade setuptools.
Looks like the root cause is that jupyter depends on tornado, but the tornado install is failing.
It could be a lib64 issue and pip install -U wheel might do the trick.
Could also just be down to tornado requiring a C/C++ compiler you don't have installed. Anaconda comes with jupyter notebook and has a simple windows installer, so that seems like the easiest path.
I am trying to install the module pysftp onto my Rapspberry Pi, but I get an error returned when
sudo pip install pysftp
is run.
This is the error I get:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-U1R0_9/pynacl
I have tried running pip install --upgrade setuptools but this does not fix the error.
My python version is 3.4.2, and my pip version is 9.0.1 (python 3.4) if that helps.
I hope I have provided enough information to be useful, I tried as much as I can but nothing seems to work.
This question is for Python 3.5.2, using Anaconda 4.3.0 on Windows 10 (64-bit)
When I try to install packages with pip I get this error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\HMGSYS\AppData\Local\Temp\pip-build-xit1wtvr\shapely\
Based on other SO answers, I tried to upgrade setuptools:
pip install --upgrade setuptools
But I get this error:
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\HMGSYS\\Anaconda3\\lib\\site-packages\\setuptools-27.2.0-py3.5.egg'
However, if I try to install setuptools:
python -m pip install -U pip setuptools
It tells me that all packages are up to date, including setuptools:
Requirement already up-to-date: setuptools in c:\users\hmgsys\anaconda3\lib\site-packages
Also, when I look in lib\site-packages, I see a folder for setuptools and another for setuptools-34.3.2.dist-info.
What should I try next? Why is setuptools looking for version 27.2.0 and ignoring the more recent versions?
EDIT:
I downloaded the specific version of setuptools that the system was looking for and the error from 'pip install --upgrade setuptools' disappeared. However, I'm still getting the first 'egg_info' error. I've also installed ez_setup, which had no effect.
Try to use conda to update setuptools:
conda update setuptools
You may try to downgrade your python into python 3.5.0.
conda install python=3.5.0
( I had encountered the same error with python 3.5.3, and it installed without error after downgraded to 3.5.0.)
Is there any way to install requests-kerberos on Windows?
When I try to install it with pip I have the following error:
py -m pip install requests-kerberos
ImportError: No module named 'commands'
Command "python setup.py egg_info" failed with error code 1 in C:\Users\user1\AppData\Local\Temp\pip-build-n8s_inn\kerberos
I would be grateful if anyone knew another kerberos module. I'm using Python 3.4 and Windows 8.
Best regards.
The commands module was deprecated in python 2.6.
Thus, the issue appears to be a problem with your pip installation, and not with requests-kerberos.
There are a few things you can try, but I would focus on ensuring pip is working correctly. While you could install the package manually, you are really just pushing the pip problem down the road until the next time you install a package.
Ensure pip is installed correctly.
Use the pip command to ensure you are running pip in the python 3.4 context: (Note, this is my output, yours will be different because you are on Windows and running 3.4)
$ pip --version
pip 1.5.6 from /Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7)
Additional information about pip can be found here.
Download and install manually
Download the package manually from the pypi repo.
Download the .tar.gz
Extract the tar.gz and run python setup.py install