简体   繁体   English

重新安装 python 后,Django 项目找不到 python 解释器

[英]python interpreter not found for Django project after re-installing python

I have made an application using Django in pycharmIDE.after completing my project I deleted python from my machine and re-installed now when I run my application it shows我已经在pycharmIDE中使用Django创建了一个应用程序。完成我的项目后,我从我的机器中删除了python,并在我运行我的应用程序时重新安装它显示

No Python at 'C:\Users\Raisan\AppData\Local\Programs\Python\Python37-32\python.exe'

how can I set python interpreter in Pycharm如何在 Pycharm 中设置 python 解释器

In order to set Python interpreter in a PyCharm project, you should click on:为了在 PyCharm 项目中设置 Python 解释器,您应该单击:

File -> Settings -> Project -> Project Interpreter

Then, on the top of the window, you should have a dropdown selection with Project Interpreter label.然后,在 window 的顶部,您应该使用Project Interpreter label 进行下拉选择。 Here you can choose the project interpreter for your project.在这里,您可以为您的项目选择项目解释器。

If the interpreter is not present, click on the settings icon (gear wheel) on the right anc choose "Add".如果解释器不存在,请单击右侧的设置图标(齿轮),然后选择“添加”。
Then choose "Existing enviroment" and navigate througth your directories until you will find your Interpreter.然后选择“现有环境”并浏览您的目录,直到找到您的口译员。
Remember that you have to select the python.exe file.请记住,您必须 select python.exe 文件。

Please set environment variable and try it otherwise uninstall python and and reinstall it but that time select custom python install and choose appropriate options like IDEdevelopment environment pip etc. Please set environment variable and try it otherwise uninstall python and and reinstall it but that time select custom python install and choose appropriate options like IDEdevelopment environment pip etc.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM