当pip install virtualenv使用缓存的virtualenv输出时,virtualenv是否正确安装? [英] Has virtualenv installed correctly when `pip install virtualenv` outputs `using cached virtualenv`?
问题描述
上下文:我正在Mac OS High Sierra上的flaskr Web项目上工作.
Context: Am working on the flaskr web project on Mac OS High Sierra.
我正处于安装Flask的阶段,我在安装virtualenv时遇到了问题:http://flask.pocoo.org/docs/0.12/tutorial/packaging/
Am at stage of installing Flask and I am running into issues with installing virtualenv: http://flask.pocoo.org/docs/0.12/tutorial/packaging/
在终端中运行以下行时:
When running the following line in Terminal:
pip install virtualenv
我得到:
pip install virtualenv
Collecting virtualenv
Using cached virtualenv-15.2.0-py2.py3-none-any.whl
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy
1.8.0rc1 which is incompatible.
Installing collected packages: virtualenv
我期望该视频中显示成功安装了virtualenv ..."的响应: https://youtu.be/-COGZITgHtw?t = 1m9s .
I was expecting a response 'successfully installed virtualenv...' as appears in this video: https://youtu.be/-COGZITgHtw?t=1m9s.
然后,在终端中运行以下命令:
Then, when running the following in Terminal:
virtualenv
我得到:
-bash: virtualenv: command not found
我注意到其他人遇到找不到命令"的问题( bash:pip:命令未找到找到,如何将virtualenv添加到路径),但我无法似乎找到了反映我收到的输出的输出.
I note others have had issues with ‘command not found’ (bash: pip: command not found, How to add virtualenv to path) but I cannot seem to find outputs which mirror what I have received.
缓存的virtualenv是否阻止了一切?还是matplotlib的东西?无论哪种方式,virtualenv似乎都没有按应有的方式安装.
Is the cached virtualenv holding things up? Or perhaps the matplotlib stuff? Either way, virtualenv doesn't appear to have installed as it ought.
(在任何情况下)使用pip更新或安装机头,龙卷风和numpy是否明智,以便我可以继续激活virtualenv?还是我需要首先解决一些问题才能获得virtuanlenv的支持,才能开始工作?
Would it be wise (in any case) to update or install nose, tornado and numpy using pip so that I can progress to activating a virtualenv? Or is something I need to address first before I can get virtuanlenv to start working?
推荐答案
我犯了同样的错误,但是成功完成了以下过程.
I did the same error, but succeeded with the following procedure.
$ brew install python3
$ brew install python3
$ pip3 install --upgrade virtualenv
$ pip3 install --upgrade virtualenv
收集virtualenv
Collecting virtualenv
高速缓存条目反序列化失败,条目被忽略
Cache entry deserialization failed, entry ignored
高速缓存条目反序列化失败,条目被忽略
Cache entry deserialization failed, entry ignored
下载virtualenv-15.2.0-py2.py3-none-any.whl(2.6MB)
Downloading virtualenv-15.2.0-py2.py3-none-any.whl (2.6MB)
100% |████████████████████████████████| 2.6MB 226kB/s
安装收集的软件包:virtualenv
Installing collected packages: virtualenv
成功安装了virtualenv-15.2.0
Successfully installed virtualenv-15.2.0
这篇关于当pip install virtualenv使用缓存的virtualenv输出时,virtualenv是否正确安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!