・仮想環境作成
python3 -m 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 install python3.8-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
sudo apt install python3.8-venv
・仮想環境のアクティベート
source ./仮想環境名/bin/activate