pyvenv 不工作,因为 ensurepip 不可用 [英] pyvenv not working because ensurepip is not available

查看:29
本文介绍了pyvenv 不工作,因为 ensurepip 不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我几天前从 ubuntu 14.04 升级到 ubuntu 16.04.当我尝试使用

I upgraded from ubuntu 14.04 to ubuntu 16.04 a few days ago. When I try to create a virtual env by using

pyvenv .venv

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.

Failing command: ['/home/user/.venv/bin/python3.5', '-Im', 'ensurepip', '--upgrade', '--default-pip']

我尝试同时运行

sudo apt-get install python3-venv

sudo apt-get install python3.5-venv

但它没有解决我的问题.

but it did not solve my problem.

推荐答案

尝试安装python3.6-venv:

try installing python3.6-venv:

sudo apt-get install python3.6-venv

这篇关于pyvenv 不工作,因为 ensurepip 不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆