gpt4 book ai didi

python - mkproject : command not found

转载 作者:太空宇宙 更新时间:2023-11-03 17:59:44 30 4
gpt4 key购买 nike

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

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com