the virtualenvwrapper official documents ask me add 3 lines ~/.bash_profile, add 3 wrong lines there, , then, there error looks below after reloaded commandsource ~/.bash_profile
/users/donald/.bash_profile:1: bad assignment
can tell me how , why? , if can teach me how install virtualenvwrapper? have spent whole night working on , fail.
the 3 wrong command lines are:
export workon_home=~/envs mkdir -p $workon_home source /usr/local/bin/virtualenvwrapper.sh
it's simple question, found answer later.
after add wrong command lines .bash_profile , can use command lines below easy-editing window
touch ~/.bash_profile open -e ~/.bash_profile
then know how do.
and...
if confused installing virtualenvwrapper, have on this:
virtualenvwrapper.sh not in /usr/local/bin
, can use command line below find it.
which virtualenvwrapper.sh
after that, can copy virtualenvwrapper.sh /usr/local/bin
or change path after source command in .bash_profile.
remember reload .bash_profile command line below everytime use virtualenvwrapper.
source ~/.bash_profile
thanks~!