Management of package updates in Python Interpreter
I am a Pycharm community newbie.
I tend to update all the packages in Python Interpreter when new ones are available to keep up to date.
Unfortunately, some of my programs will not run with the updated packages. Then I will have to downgrade the versions. Find that annoying some of the time.
What is the best practice in managing this, keeping to the latest versions and still being able to run the programs?
Self discipline? Using projects?
Thanks.
Please sign in to leave a comment.
A good practice is to use a requirements file or similar to keep your environment consistent. This file contains the list of packages with the required versions for this particular application. Using this concept will allow the developer to easily reproduce Python environments. You can read more on how to use the requirements file here: https://learnpython.com/blog/python-requirements-file/
Noted and many thanks!
It sounds like just what I want. I will try it out. I am sure many new users to Pycharm will find this useful.