背景:我正在 Mac OS High Sierra 上开发 Flaskr Web 项目。
正在安装 Flask 阶段,我在安装 virtualenv 时遇到了问题:http://flask.pocoo.org/docs/0.12/tutorial/packaging/ http://flask.pocoo.org/docs/0.12/tutorial/packaging/
在终端中运行以下行时:
pip install virtualenv
I get:
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 https://youtu.be/-COGZITgHtw?t=1m9s.
然后,在终端中运行以下命令时:
virtualenv
I get:
-bash: virtualenv: command not found
我注意到其他人遇到了“找不到命令”的问题(bash:pip:找不到命令 https://stackoverflow.com/questions/9780717/bash-pip-command-not-found, 如何将 virtualenv 添加到路径 https://stackoverflow.com/questions/15453793/how-to-add-virtualenv-to-path)但我似乎找不到反映我收到的内容的输出。
缓存的 virtualenv 是否会阻止事情发生?或者也许是 matplotlib 的东西?无论哪种方式,virtualenv 似乎都没有按其应有的方式安装。
使用pip更新或安装nose、tornado和numpy以便我可以继续激活virtualenv是否明智(在任何情况下)?或者在让 virtuanlenv 开始工作之前我需要先解决什么问题?