Python Virtual Environments
pip install virtualenv
mkdir python-virtual-environments && cd python-virtual-environments
# In Project Folder
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
My Jupyter Environment
pip install jupyter
pip install numpy
pip install spacy
pip install sqlalchemy
pip install psycopg2-binary
pip install pypdf
python -m spacy download en_core_web_sm
Generate requirements.txt from virtual environment
pip3 freeze > requirements.txt
Sources
- python - How to create a requirements.txt? - Stack Overflow
- python - How to create a requirements.txt? - Stack Overflow
- Virtual Environments — The Hitchhiker's Guide to Python
- python - Automatically create requirements.txt - Stack Overflow
- The definitive guide to setup my Python workspace | by Henrique Bastos | Medium
- pyenv
- Python Virtual Environments: A Primer -- Real Python
- https://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv
- Use different Python version with virtualenv - Stack Overflow