Techtrekking

Python quick commands

By Pravin

Create requirements.txt file

pip freeze > requirements.txt

Install from requirements.txt

pip install -r requirements.txt

Install package locally

If you are into package folder

pip install -e .

if anywhere else

pip install -e /home/package/

Virtual Environments

sudo apt install python3.10-venv python3 -m venv venv_trading source venv_trading/bin/activate pip install --upgrade pip
Comments
No comments yet. Be the first to comment!
Leave a Comment
Your comment will be visible after approval.