How to change django version in PyCharm?
Solution 1
You don't do that with Pycharm, Pycharm just detects the installed version. You change the version with pip:
pip uninstall django # just for explicity
pip install django==1.6.8
Make sure you use virtual environments if you run multiple applications on the same machine.
Solution 2
Go to Settings
->Project Interpreter
.
Double-click the Django
package. Activate the check box Specify version
and select the version you want.
Press the button Install Package
.
Django will use pip
in the background to install the package.
Solution 3
In default settings of project.
File -> Default Settings -> Default Project -> Project Interpretatoe
Solution 4
Also you can add to your project requirements.txt file to make sure whether the current interpreter contains required package, if not - PyCharm ask you to install them.
Solution 5
Go to file>>settings>>Project Interpreter and click the plus sign at the right edge of the popup window and look for django and install it. You need internet access though. It will install the new version.
Jacob
Hi :) .. avoid this for your life quality ;) https://www.linkedin.com/in/kozlowskijakub
Updated on June 07, 2022Comments
-
Jacob about 2 years
I've installed new PyCharm that uses django v1.71(default), but I would like to change it to v1.68.
How can we achieve this with
PyCharm
? -
Jacob over 9 yearsIt's enough to call "pip install django==1.6.8", it detected previous version and uninstalled it automatically. Thx
-
All Іѕ Vаиітy about 8 yearsyou can do it in PyCharm, either by switching virtual environments or installing appropriate version from
Setttings
>Project Interpreter
-
Fareed Alnamrouti about 6 yearslike for the straightforward answer :)
-
T. Christiansen over 5 yearsThis is actually not an answer the question, which asks for the PyCharm interpreter version.