cd <my-project>
pyenv local 3.8.17
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install pip-tools
Add deps to requirements.in
, then:
pip-compile
Commit requirements.txt
and requirements.in
. Then
pip install -r requirements.txt
(Note: Do not use this method for libs. For libs, edit setup.cfg
instead)
pip list
pip config list
pip list --outdated
This adds my-lib
as a dependency to my-app
:
mkdir ~/dev/my-app
cd ~/dev/my-app
pyenv local <version>
python -m venv .env
source .env/bin/activate
pip install --upgrade pip
pip install wheel
pip install -e ~/dev/my-lib
It’s best to update in requirements.in
, but for hacking:
pip install --upgrade scipy
pip check
pip install -r requirements3.txt