I'm trying to use mkvirtualenv .
to create a virtualenv in the current directory, but with no success:
~/repos/foo$ mkvirtualenv .
created virtual environment CPython3.9.5.final.0-64 in 284ms
creator CPython3Posix(dest=/Users/mdval/.virtualenvs, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/mdval/Library/Application Support/virtualenv)
added seed packages: pip==21.2.3, setuptools==57.4.0, wheel==0.37.0
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator
ERROR: Environment 'foo' does not exist. Create it with 'mkvirtualenv foo'.
However, using mkvirtualenv foo
works. Can someone help me, please?
Here's my .zshrc
config:
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/repos
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…