We usually use $ python3 -m venv myvenv
to create a new virtualenv (here myvenv
is the name of our virtualenv).
, python3.5
, python3.6
, .
. Debian/Ubuntu :
The virtual environment was not created successfully because ensure pip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.
apt-get installpython3-venv
You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.
python3-venv:
$ sudo apt-get install python3-venv
.. Debian/Ubuntu, , , :
Error Command: ['/home/wgetdj/WorkPlace/Programming/Python/myvenv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
, virtualenv.
$ sudo apt-get install python-virtualenv
$ virtualenv --python=python3.6 myvenv
. ,
E: python3-venv
:
sudo apt install python3.6-venv