Ubuntu で python3.6 -m venv がエラーになる場合

2018-08-14 06:45 (7 years ago)
Ubuntu で python3.6 -m venv がエラーになる場合
$ python3.6 -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/ubuntu/venv/bin/python3.6', '-Im', 'ensurepip', '--upgrade', '--default-pip']

Ubuntu 14 とか 16 でこんな感じになる時は

$ python3.6 -m venv --without-pip venv

$ source venv/bin/activate
$ python --version

$ curl https://bootstrap.pypa.io/get-pip.py | python

--without-pip でやる

評価をお願いします
まだ評価がありません
著者は、アプリケーション開発会社 Cyberneura を運営しています。
開発相談をお待ちしています。

アーカイブ