Reputation: 1170
I am using Ubuntu 18.04.4 LTS. I use conda
instead of pip
. My Django version was 2.2.1. After I run
conda install -c anaconda django
in my terminal, my Django version is 2.2.5.
How can I upgrade/update it to the current version 3.0.3?
Upvotes: 4
Views: 5639
Reputation: 26
I faced problem while running django application in environment for a while I didn't find anything but at last I decided to check each libraries version and started with django and with good's sake it was django version which had conflicted running the app.
go on updating to current enviroment .......
Upvotes: 0
Reputation: 551
I recommend you always use
conda install -c conda-forge <somepackage>
On the other hand, if you do not specify the version, conda will install the most recent one that is compatible with your other libraries in that environment. That is, if you have other libraries that are not compatible even if version 3 is the latest one, conda will install version 2 for example. If you explicitly say
conda install -c conda-forge django=3.0.3
Conda will try to install that version, but the installation will only be successful if there are no compatibility problems. In case of compatibility problems you will be warned by the installer itself, e.g. "the somepackage version compatible with Django 3.0.3 must be >= 2.5". This way you'll know which libraries are preventing you from installing your latest version of django.
I invite you to create a new (empty) environment, and only install Django and Python with conda-forge, and I assure you that even if you don't put Django=3.0.3, it will install that version, because it won't have any external conflicting libraries.
Upvotes: 8