我正在尝试安装Python3虚拟环境。当我尝试运行virtualenv时,我收到以下信息。
virtualenv
Command 'virtualenv' not found, but can be installed with:
apt install python3-virtualenv
但是,如果我运行安装命令,我会收到以下错误。
apt install python3-virtualenv
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-virtualenv
对于 python3 -m venv
,我收到安装消息要使用 apt-get install python3-venv
但是当我尝试它时,我收到相同的消息。
sudo apt-get install python3-venv
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-venv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3-venv' has no installation candidate
我正在以root身份运行此程序。 wget也可以正常工作。
python3 -m venv
可以工作吗? - Klaus D.