[Fixed]-How to change django version in PyCharm?

13👍

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.

👤Peter

13👍

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.

3👍

In default settings of project.

File -> Default Settings -> Default Project -> Project Interpretatoe
👤Vlad

2👍

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.

2👍

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.

2👍

The best way is to use virtualenv: create a new virtual environment, install the python you want and keep the path to this version’s python.exe file.

Open PyCharm and go to settings:

enter image description here

0👍

You can open your project in pycharm and then change your django version by this method:

menu->file->setting->project:(your project_name)

In package list click on the package you want(here the package we want is Django).

You can delete a package with minus(-) sign and install a package with plus(+) sign…

For example if your previous Django version is 3.0 you can delete it and install even an older version.

Leave a comment