python - mkproject : command not found

标签 python virtualenvwrapper

我正在尝试学习 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/

相关文章:

argparse - 安装 virtualenvwrapper 会导致安装未经测试的 argparse

Python统计包: difference between statsmodel and scipy. stats

python - add2virtualenv(virtualenv 包装器)不适用于 scipy

python - 如何强制 virtualenv 从 pypi 安装最新的 setuptools 和 pip?

python - 每天在python中创建一个日志文件

python - 如何在 OSX 10.6 中将 MySQLdb 与 Python 和 Django 一起使用?

python - 在 virtualenvwrapper 中激活环境

python - 将派生类传递给在 SWIG Python 中采用基类的函数

python - 如何确定特定类存在的对象数?

python dataframe 将列转换为行