Specify the folder to create the virtual environment
python3.x -m venv any folder
If the folder does not exist, it will be created automatically
Activate the virtual environment
source Arbitrary folder / bin / activate
Introduce pip with ensure pip
python -m ensurepip
Introduce modules etc. with pip
pip install modulename
If you get an error
Avoid ensure pip, create a directory, and then install pip
python3.x -m venv --without-pip any folder
Install setuptools
install pip
Recommended Posts