在Linux Mint上安装python3-venv模块 [英] Install python3-venv module on linux mint
问题描述
我能够从Linux Mint 16迁移到Linux Mint 17.3 64位版本.这是人们期待已久的迁移.
I was able to move to Linux mint 17.3 64 bit version from my Linux mint 16. This was long awaited migration.
转到Linux Mint 17.3之后,我无法安装python3-venv模块,据说该模块可以替换python 3.x中的virtualenv.在我的Linux Mint 16中,我可以使用pyvenv-3.4工具.我不知道何时在Linux Mint 16中安装该模块.
After moving to Linux Mint 17.3, I am not able to the install python3-venv module, which is said to be the replacement for virtualenv in python 3.x. In my linux mint 16 I had access to pyvenv-3.4 tool. I dont know when I installed that module in Linux mint 16.
有人遇到这个问题吗?
python -m venv test
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
izero@Ganesha ~/devel $ sudo apt-get install python3-venv
[sudo] password for izero:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-venv
推荐答案
尝试运行此命令:
sudo apt-get install python3.4-venv
然后使用此:
python3 -m venv test
程序包名称是python3.4-venv
,而不是python3-venv
.
the package name is python3.4-venv
and not python3-venv
.
这篇关于在Linux Mint上安装python3-venv模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!