Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why setprojectdir command is not found in virtualenvwrapper while other command work fine

I install Python2.7.11 In CentOS 7 with this command

make altinstall

and use

mkvirtualenv -p /usr/local/bin/python2.7 VirtualEnvName

to create a new virtualenv.

But when workon this virtualenv, I want to set the project dir with the command:

setprojectdir PATH_TO_PROJECT 

and this error show up:

-bash: setprojectdir: command not found

while command like "lssitepackages" work just fine.

like image 705
GoTop Avatar asked Feb 07 '23 09:02

GoTop


2 Answers

Yeah, that should be setvirtualenvproject with no arguments.

like image 76
wei ren Avatar answered Feb 16 '23 09:02

wei ren


I figure it out, I have to use

setvirtualenvproject

to set project instend of use

setprojectdir
like image 20
GoTop Avatar answered Feb 16 '23 09:02

GoTop