Create Virtual Environment in Python3 - 10/06/2023
Simple example how to create, start and exit Python3 Virtual Environment
Create Virtual Environment in Python3
Terminal commands:
sudo apt install python3-venvpython3 -m venv techsolutionz-envsource techsolutionz-env/bin/activatepip3 install requestspython -c "import requests"nano youtube.py
from YouTube video explaining how to import requests module into this specific venv (techsolutionz-env) and create a small script that requests a header from a website:
import requests
r = requests.get("http://httpbin.org/get")
print(r.headers)