找不到文件setuptools-27.2.0-py3.5.egg [英] Cannot find file setuptools-27.2.0-py3.5.egg

查看:281
本文介绍了找不到文件setuptools-27.2.0-py3.5.egg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题针对的是Python 3.5.2,在Windows 10(64位)上使用Anaconda 4.3.0

This question is for Python 3.5.2, using Anaconda 4.3.0 on Windows 10 (64-bit)

当我尝试使用pip安装软件包时,出现此错误:

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\

基于其他SO答案,我尝试升级setuptools:

Based on other SO answers, I tried to upgrade setuptools:

pip install --upgrade setuptools

但是我得到这个错误:

FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\HMGSYS\\Anaconda3\\lib\\site-packages\\setuptools-27.2.0-py3.5.egg'

但是,如果我尝试安装setuptools:

However, if I try to install setuptools:

python -m pip install -U pip setuptools

它告诉我所有软件包都是最新的,包括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

此外,当我查看lib \ site-packages时,会看到一个用于setuptools的文件夹,另一个用于setuptools-34.3.2.dist-info的文件夹.

Also, when I look in lib\site-packages, I see a folder for setuptools and another for setuptools-34.3.2.dist-info.

接下来我应该尝试什么?为什么setuptools会寻找版本27.2.0而忽略了较新的版本?

What should I try next? Why is setuptools looking for version 27.2.0 and ignoring the more recent versions?

我下载了系统正在寻找的特定版本的setuptools,"pip install --upgrade setuptools"中的错误消失了.但是,我仍然遇到第一个"egg_info"错误.我还安装了ez_setup,它没有任何作用.

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.

推荐答案

尝试使用conda更新setuptools:

Try to use conda to update setuptools:

conda更新设置工具

conda update setuptools

这篇关于找不到文件setuptools-27.2.0-py3.5.egg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆