Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
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.
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.