【问题标题】:Can't install tornado无法安装龙卷风
【发布时间】:2019-05-03 20:57:48
【问题描述】:

我正在设置 tensorflow,我得到了这个输出:

ERROR: matplotlib 1.3.1 requires nose, which is not installed.

原来如此

sudo easy_install tornado

我得到了输出:

earching for tornado
Reading https://pypi.python.org/simple/tornado/
Download error on https://pypi.python.org/simple/tornado/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'tornado' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for tornado
error: Could not find suitable distribution for Requirement.parse('tornado')

我该怎么办? 谢谢 法国

错误:matplotlib 1.3.1 需要nose,未安装。

【问题讨论】:

  • 您使用easy_install而不是pip的任何特殊原因?
  • 也试过这个,但我得到了输出:错误:未知命令“龙卷风”
  • pip install tornado 而不是pip tornado
  • 告诉我这些错误:错误:matplotlib 1.3.1 需要鼻子,它没有安装。安装收集的包:singledispatch、backports-abc、龙卷风错误:由于 EnvironmentError 无法安装包:[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/singledispatch.py​​' 考虑使用@987654328 @ 选项或检查权限。

标签: python tensorflow matplotlib tornado easy-install


【解决方案1】:

您似乎在代理或防火墙后面运行命令。如果是这种情况,那么需要设置相应的环境变量:

set http_proxy="username:password@host:port"
set https_proxy="username:password@host:port"

否则,您可以通过运行使用pip 安装tornado(如果您不在代理后面,则忽略--proxy):

pip --proxy http://user:password@proxy-host:port install tornado

编辑:我建议运行

sudo -H pip install --ignore-installed matplotlib

为了安装所需的软件包并忽略当前版本。

【讨论】:

  • semms 工作:成功安装 backports.functools-lru-cache-1.5 cycler-0.10.0 kiwisolver-1.1.0 matplotlib-2.2.4 numpy-1.16.3 pyparsing-2.4.0 python-dateutil -2.8.0 pytz-2019.1 setuptools-41.0.1 六-1.12.0 subprocess32-3.5.3
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-08-25
  • 1970-01-01
  • 2016-07-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多