Python Django Pip Update Problems: How To Get Compatible Versions?
I tried to run a django demo project on a hosted server (Ubuntu 16.04): it worked fine. Then I tried to run the same code on a local machine: Unhandled exception in thread started
Solution 1:
on the working system, do
pip freeze > requirements.txt
copy that file over (I always check one in as part of my repository)
on the new machine, probably in a virtual environment, you can update to those versions with
pip install -r requirements.txt
Solution 2:
As RishiG said you should create a requirements.txt file which will contains the project dependencies but mostly you should use a virtual environnement. It will allow you to isolate your python version and packages and their version for each of your project.
Post a Comment for "Python Django Pip Update Problems: How To Get Compatible Versions?"