为什么会出现"pip install龙卷风"没有安装龙卷风模块? [英] Why is "pip install tornado" not installing the tornado module?

查看:124
本文介绍了为什么会出现"pip install龙卷风"没有安装龙卷风模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将龙卷风安装到我的虚拟环境中,以便让Jupyter正常工作.我尝试了pip install tornado,它似乎可以运行,但是它仅安装其他模块.我什至尝试卸载龙卷风,然后尝试重新安装它,但是由于它不存在,所以我什至无法卸载它.

I am trying to install tornado onto my virtual environment, so I can get Jupyter to work. I tried pip install tornado and it seems like it runs but it only installs other modules. I even tried to uninstall tornado and then try to reinstall it, but since it doesn't exist, I can't even uninstall it.

有没有一种安装龙卷风的方法,这样我就可以看到它吗?我觉得我已经尝试了一切.有什么建议吗?

Is there a way to install tornado so I can see it? I feel like I've tried everything. Any advice?

Edit1:我应该提一下,更新pip并没有任何作用.

I should mention, updating pip did nothing.

下面的shell输出是我设置虚拟环境并激活它

The shell output below is me setting up virtual environment and activating it

[ec2-user@ip-172-31-51-121 ~]$ virtualenv venv
New python executable in venv/bin/python2.7
Also creating executable in venv/bin/python
Installing setuptools, pip...done.
[ec2-user@ip-172-31-51-121 ~]$ . venv/bin/activate

然后我们看一下pip list

(venv)[ec2-user@ip-172-31-51-121 ~]$ pip list
You are using pip version 6.0.8, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
pip (6.0.8)
setuptools (12.0.5)

接下来,我们pip install tornado(并确保我们重新下载它,以防它驻留在缓存中):

Next, we pip install tornado (and make sure we re-download it in case it lives in the cache):

(venv)[ec2-user@ip-172-31-51-121 ~]$ pip install tornado --no-cache-dir
You are using pip version 6.0.8, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting tornado
  Downloading tornado-4.3.tar.gz (450kB)
    100% |################################| 454kB 27.6MB/s
Collecting backports.ssl-match-hostname (from tornado)
  Downloading backports.ssl_match_hostname-3.5.0.1.tar.gz
Collecting singledispatch (from tornado)
  Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting certifi (from tornado)
  Downloading certifi-2016.2.28-py2.py3-none-any.whl (366kB)
    100% |################################| 368kB 28.2MB/s
Collecting backports-abc>=0.4 (from tornado)
  Downloading backports_abc-0.4-py2.py3-none-any.whl
Collecting six (from singledispatch->tornado)
  Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six, backports-abc, certifi, singledispatch, backports.ssl-match-hostname, tornado




  Running setup.py install for backports.ssl-match-hostname
  Running setup.py install for tornado
    building 'tornado.speedups' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c tornado/speedups.c -o build/temp.linux-x86_64-2.7/tornado/speedups.o
    gcc -pthread -shared build/temp.linux-x86_64-2.7/tornado/speedups.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/tornado/speedups.so
Successfully installed backports-abc-0.4 backports.ssl-match-hostname-3.5.0.1 certifi-2016.2.28 singledispatch-3.4.0.3 six-1.10.0 tornado

使用pip list进行了双重检查,我们仍然看不到tornado

Double checking with pip list and we still do not see tornado

(venv)[ec2-user@ip-172-31-51-121 ~]$ pip list
You are using pip version 6.0.8, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
backports-abc (0.4)
backports.ssl-match-hostname (3.5.0.1)
certifi (2016.2.28)
pip (6.0.8)
setuptools (12.0.5)
singledispatch (3.4.0.3)
six (1.10.0)

当然,由于我们看不到它,因此无法将其卸载.

And of course, since we can't see it, we can't uninstall it.

(venv)[ec2-user@ip-172-31-51-121 ~]$ pip uninstall tornado
You are using pip version 6.0.8, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Cannot uninstall requirement tornado, not installed

推荐答案

我的猜测是您正在使用的旧版virtualenv不支持Tornado所需的lib64.应该修复升级virtualenv的问题.

My guess is that you are using an older version of virtualenv that does not support lib64, which Tornado needs. This should be fixed up upgrading virtualenv.

这篇关于为什么会出现"pip install龙卷风"没有安装龙卷风模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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