# Install venv sudo apt install python3-venv #Create a new virual env python3 -m venv .venv/project_name # Get into virtual env - now you are in vir env source project_name/bin/activate #deactivate vir env deactivate #install a package python -m pip install requests pip install --upgrade --force-reinstall --ignore-installed -r requirements.txt \ > --extra-index-url file:///$PWD/lib #list available packages python -m pip freeze
Resolving externally-managed-environment × This environment is externally managed - Create a virtual env or - install the packages system wide --break-system-packages pip install requests --break-system-packages
Comments
Post a Comment