mkproject: command not found

自闭症网瘾萝莉.ら 提交于 2019-12-13 01:24:02

问题


I am trying to learn Flask

I want to use mkproject to generate the project.

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.

I installed virtualenvwrapper

sudo pip install virtualenvwrapper

I add these commands on:

source "/usr/bin/virtualenvwrapper.sh"
export WORKON_HOME="/opt/virtual_env/"

When I run the command

$ mkproject firstApp

I got this error

-bash: mkproject: command not found

am I missing something ?


回答1:


You need to activate virtualenvwrapper. Run this manually or put it in your .bashrc:

source /usr/local/bin/virtualenvwrapper.sh


来源:https://stackoverflow.com/questions/27902217/mkproject-command-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!