I'm on Ubuntu WSL and installed virtualenvwrapper
using sudo apt install
.
As required, variable WORKON_HOME
is correctly set to my virtual envs directory.
When I run mkvirtualenv myawesomeproject
I get the following error :
created virtual environment CPython3.8.2.final.0-64 in 760ms
creator CPython3Posix(dest=/home/fred/venvs/myawesomeproject, clear=False, global=False)
seeder FromAppData(download=False, CacheControl=latest, appdirs=latest, certifi=latest, chardet=latest, colorama=latest, contextlib2=latest, distlib=latest, distro=latest, html5lib=latest, idna=latest, ipaddr=latest, lockfile=latest, msgpack=latest, packaging=latest, pep517=latest, pip=latest, pkg_resources=latest, progress=latest, pyparsing=latest, pytoml=latest, requests=latest, retrying=latest, setuptools=latest, six=latest, urllib3=latest, webencodings=latest, wheel=latest, via=copy, app_data_dir=/home/fred/.local/share/virtualenv/seed-app-data/v1.0.1.debian)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Command '' not found, but can be installed with:
sudo apt install mailutils-mh # version 1:3.7-2.1, or
sudo apt install meshio-tools # version 4.0.4-1
sudo apt install mmh # version 0.4-2
sudo apt install nmh # version 1.7.1-6
sudo apt install termtris # version 1.3-1
Any idea ?
Add these two lines in your .bashrc file
export VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3'
source /usr/local/bin/virtualenvwrapper.sh
Make sure to put them in this order exactly.
The first line means that virtualenvwrapper will use python 3.
You have to replace '/usr/bin/python3'
with your python path. You can find it by typing which python