1. install your python exe or python version
2. check python --version or py --version and keep that in mind to use it
windows
python --version
pip install virtualenv
#here python --version says 3.9, then while creating Venv, use python or python3.9 which ever works
python -m venv env3.9
env3.9\Scripts\activate
deactivate
linux
sudo apt install python3.9
sudo apt install python3.9-venv
python3.9 --version
python3.9 -m venv env3.9
source env3.9/bin/activate
deactivate
No comments:
Post a Comment