问题
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