Install#
python: No module named venv#
You need to install venv for your OS. For Ubuntu, you can use sudo apt install python3.10-venv
(or python3.9-venv
or python3.11-venv
, etc.). Then retry the command to make your virtual env.
Python 3.8 or earlier#
Old Linux distros may not have Python 3.9 or above available to install. Thankfully, there are ways to get newer Pythons:
Ubuntu can use this PPA: deadsnakes-ppa. Then sudo apt install python3.10-dev python3.10-venv
like normal.
For other distros/versions, we recommend using pyenv.