未找到 virtualenvwrapper 命令“”,但可以安装
virtualenvwrapper Command '' not found, but can be installed with
我正在使用 Ubuntu WSL 并使用 sudo apt install
安装了 virtualenvwrapper
。
根据需要,变量 WORKON_HOME
已正确设置为我的虚拟环境目录。
当我 运行 mkvirtualenv myawesomeproject
我得到以下错误:
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
有什么想法吗?
将这两行添加到您的 .bashrc 文件中
export VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3'
source /usr/local/bin/virtualenvwrapper.sh
确保按此顺序排列。
第一行表示 virtualenvwrapper 将使用 python 3。
您必须将 '/usr/bin/python3'
替换为您的 python 路径。您可以通过输入 which python
找到它
我正在使用 Ubuntu WSL 并使用 sudo apt install
安装了 virtualenvwrapper
。
根据需要,变量 WORKON_HOME
已正确设置为我的虚拟环境目录。
当我 运行 mkvirtualenv myawesomeproject
我得到以下错误:
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
有什么想法吗?
将这两行添加到您的 .bashrc 文件中
export VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3'
source /usr/local/bin/virtualenvwrapper.sh
确保按此顺序排列。
第一行表示 virtualenvwrapper 将使用 python 3。
您必须将 '/usr/bin/python3'
替换为您的 python 路径。您可以通过输入 which python