Reputation: 5354
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 ?
Upvotes: 1
Views: 3274
Reputation: 599590
You need to activate virtualenvwrapper. Run this manually or put it in your .bashrc
:
source /usr/local/bin/virtualenvwrapper.sh
Upvotes: 1