首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Anaconda上的Python 3-无法使用pip安装软件包

Anaconda上的Python 3-无法使用pip安装软件包
EN

Stack Overflow用户
提问于 2018-08-09 03:59:02
回答 1查看 1.8K关注 0票数 0

我在一台新电脑(windows1064位)上安装了anaconda发行版,但我无法通过anaconda提示符安装python包。

我已经重新安装了anaconda并更新了所有的东西- aconda navigator,pip,pip3等,我已经在网上尝试了至少10种可能的解决方案,但似乎都不起作用。

我得到以下错误:

代码语言:javascript
复制
(base) C:\Windows\system32>pip install Scrapy
Collecting Scrapy
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/scrapy/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/scrapy/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/scrapy/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/scrapy/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/scrapy/
  Could not find a version that satisfies the requirement Scrapy (from versions: )
No matching distribution found for Scrapy

(base) C:\Windows\system32>pip3 install tensorflow
Collecting tensorflow
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tensorflow/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tensorflow/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tensorflow/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tensorflow/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tensorflow/
  Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

对于我尝试安装的每个包。

Python版本:Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)] on win32

代码语言:javascript
复制
(base) C:\Windows\system32>conda list anaconda$
# packages in environment at C:\Users\vinic\Anaconda3:
#
# Name                    Version                   Build  Channel
anaconda                  custom           py36h363777c_0

编辑:如果我使用conda install <package>,它似乎可以工作,有什么区别吗?

我尝试了3个小时来解决这个问题,但是没有成功。有人知道这是怎么回事吗?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51754713

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档