Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 247
Jacob Avatar asked Dec 12 '14 09:12

Jacob


3 Answers

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.

like image 157
Matthias Avatar answered Sep 29 '22 07:09

Matthias


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.

like image 23
Peter Avatar answered Sep 29 '22 05:09

Peter


In default settings of project.

File -> Default Settings -> Default Project -> Project Interpretatoe
like image 37
Vlad Avatar answered Sep 29 '22 06:09

Vlad