Ubuntuでvenvを使う
python3-venvが必要
$ python3 -m venv.venv
code:*
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.
$ sudo apt-get install python3-venv
あとは他OSと同様
$ python3 -m venv.venv
$ source .venv/bin/activate.fish
fishの場合
$ (.venv) pip install pytest