Skip to content Skip to sidebar Skip to footer

How To Change Django Version In PyCharm?

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?

Solution 1:

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 2:

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 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.


Post a Comment for "How To Change Django Version In PyCharm?"