我正在尝试学习 Flask
我想使用mkproject
来生成项目。
Virtualenvwrapper provides a "mkproject" command. It's the exact same as the mkvirtualenv command but it also creates a .project text > file in the root of the virtualenv which contains the dirpath of the > project source code.
我安装了virtualenvwrapper
sudo pip install virtualenvwrapper
我将这些命令添加到:
source "/usr/bin/virtualenvwrapper.sh"
export WORKON_HOME="/opt/virtual_env/"
当我运行命令时
$ mkproject firstApp
我收到这个错误
-bash: mkproject: command not found
我错过了什么吗?
最佳答案
您需要activate virtualenvwrapper 。手动运行它或将其放入您的 .bashrc
中:
source /usr/local/bin/virtualenvwrapper.sh
关于python - mkproject : command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27902217/