Python3.4 虚拟环境创建失败

创建虚拟环境没有成功:

python3 -m venv venv

错误提示:

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.

查看本地python版本为3.4

解决办法:

sudo apt-get install python3.4-venv

Then use this:

python3 -m venv venv
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容