I installed my first virtual environment using this commands below
Commands used:
apt-get update -y
apt-get install -y python3-venv
mkdir awesome_python_project
cd awesome_python_project
python3 -m venv awesome_venv
source awesome_venv/bin/activate
but I can't access it again, does anyone knows why?
You can re-active your virtual environment again by going to the awesome_python_project folder and repeating the last command.
That is:
cd awesome_python_project
To go to the project folder. And
source awesome_venv/bin/activate
To activate your virtual environment
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.