Как на VDS Ubuntu создать виртуальное окружение c конкретной версией python?

На VDS (Ubuntu 18.04) есть питон 3.7, 3.8. Но когда я пытаюсь сделать виртуальное окружение через команду

python3 -m venv venv

ТО ставится 3.6.9.

Окей, я пытаюсь поставить:

python3.7 -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. sudo apt-get install python3-venv

Я успешно устанавливаю этот пакет. Пытаюсь снова заинсталить

python3.7 -m venv venv

Но создаются лишь пустые папки.

UPD:

Получилось поставить через команды:

sudo apt update
sudo apt install python3.7-venv

Но теперь не ставятся модули через pip install

Скачалось, потом ошибка: Failed building wheel for multidict

compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/home/amigoalex/bot/venv/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jycaj9u0/multidict/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-6qfpz5r5-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/amigoalex/bot/venv/include/site/python3.7/multidict" failed with error code 1 in /tmp/pip-build-jycaj9u0/multidict/

Ответы (0 шт):