如何在PyCharm中更改Django版本? [英] How to change django version in PyCharm?
本文介绍了如何在PyCharm中更改Django版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我安装了使用django v1.71(默认)的新PyCharm,但我想将其更改为v1.68。
I've installed new PyCharm that uses django v1.71(default), but I would like to change it to v1.68.
如何使用 PyCharm
实现这一目标?
How can we achieve this with PyCharm
?
推荐答案
您无需使用Pycharm进行操作,Pycharm只会检测已安装的版本。您可以使用pip更改版本:
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.
这篇关于如何在PyCharm中更改Django版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文