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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With