为什么“virtualenv:找不到命令"? [英] Why "virtualenv: command not found"?
本文介绍了为什么“virtualenv:找不到命令"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
它告诉我找不到virtualenv命令,没有人知道可能是什么问题吗?
It's telling me that the virtualenv command not found, doesn't anyone know what the problem might be?
Brendans-MacBook-Pro:TestProject brendan.whiting$ python --version
Python 3.5.0
Brendans-MacBook-Pro:TestProject brendan.whiting$ pip install virtualenv
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /Users/brendan.whiting/Library/Python/3.5/lib/python/site-packages
Brendans-MacBook-Pro:TestProject brendan.whiting$ virtualenv venv
-bash: virtualenv: command not found
Brendans-MacBook-Pro:TestProject brendan.whiting$
推荐答案
如果你使用的是 mac os x 那么路径可能不包含在 PYTHONPATH 变量中,所以你需要附加模块的实际路径.
If you use mac os x then the path may not be included in PYTHONPATH variable, so you need to append it with the actual path of modules.
这篇关于为什么“virtualenv:找不到命令"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文