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-venv
python3 -m venv techsolutionz-env
source techsolutionz-env/bin/activate
pip3 install requests
python -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)