How to change django version in PyCharm?

13,046

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.

Share:
13,046
Jacob
Author by

Jacob

Hi :) .. avoid this for your life quality ;) https://www.linkedin.com/in/kozlowskijakub

Updated on June 07, 2022

Comments

  • Jacob
    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
    Jacob over 9 years
    It's enough to call "pip install django==1.6.8", it detected previous version and uninstalled it automatically. Thx
  • All Іѕ Vаиітy
    All Іѕ Vаиітy about 8 years
    you can do it in PyCharm, either by switching virtual environments or installing appropriate version from Setttings > Project Interpreter
  • Fareed Alnamrouti
    Fareed Alnamrouti about 6 years
    like for the straightforward answer :)
  • T. Christiansen
    T. Christiansen over 5 years
    This is actually not an answer the question, which asks for the PyCharm interpreter version.