Cannot find setuptools-27.2.0-py3.5.egg file

This question is for Python 3.5.2 using Anaconda 4.3.0 for 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 updating 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 

He tells me that all packages are updated, 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 do next? Why is setuptools looking for version 27.2.0 and ignoring later versions?

EDIT:

I downloaded the specific version of setuptools that the system was looking for and the error from 'pip install --updrade setuptools' disappeared. However, I still get the first "egg_info" error. I also set up ez_setup, which had no effect.

+5
source share
2 answers

Try using conda to update setuptools:

Updating conda configuration settings

+10
source

You can try lowering your python in python 3.5.0.

 conda install python=3.5.0 

(I encountered the same error with python 3.5.3 and it was installed without errors after downgrading to 3.5.0.)

+3
source

Source: https://habr.com/ru/post/1265363/


All Articles