Skip to content

Updating Python dependencies in PyCharm

Matt Graham edited this page Sep 29, 2023 · 1 revision

To update the versions of the Python packages in your local virtual environment in PyCharm, from the Terminal tab in PyCharm, check that you the prompt is showing that the current working directory is the root of the TLOmodel repository (for example by running pwd) and then run the following command

pip install -r requirements/dev.txt --upgrade 

image

This should then print a stream of output which ends with a Successfully installed ... message if there were packages to be updated, or with a series of Requirement already satisfied: ... messages if all packages are already up to date.

You can verify that the package versions now match those in the requirements/dev.txt file by opening the Python packages tool tab and checking against the version specifiers in the requirements/dev.txt file as in the screenshot below

image

Clone this wiki locally