Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't `lsvirtualenv` show my virtual environments?

I installed virtualwrapper using the instruction, i.e. after installing via sudo pip install virtualenvwrapper, I got

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Documents/Devel
source /usr/.local/bin/virtualenvwrapper.sh

listed in my ~/.zshrc and ~/.profile file, which I then sourced.

Then I created a virtual environment using virtualenv env in a folder. But when I run lsvirtualenv, nothing shows up. No message, just another $ promt.

Why doesn't it show the newly created environment env?

like image 336
MJimitater Avatar asked Mar 05 '26 10:03

MJimitater


1 Answers

lsvirtualenv lists only virtual environments created in $WORKON_HOME using mkvirtualenv. Environments created elsewhere with virtualenv cannot be listed.

Once you started to use virtualenvwrapper you should constrain yourself with its commands without resorting back to virtualenv.

like image 174
phd Avatar answered Mar 07 '26 22:03

phd