Error please select a valid python interpreter как исправить pycharm

Пытаясь заставить PyCharm работать, продолжайте получать «Не выбран интерпретатор Python» Я пытаюсь изучить Python и решил использовать

Я пытаюсь изучить Python и решил использовать PyCharm. Когда я пытаюсь запустить новый проект, я получаю диалог, в котором говорится, что «Нет интерпретатора Python выбрано». У него есть раскрывающийся список, чтобы выбрать интерпретатор, но выпадающий пуст.

8 ответов

Вероятно, ваша проблема заключается в том, что вы не установили python. Это означает, что если вы используете Windows, вы не загрузили установщик для Windows, который вы можете найти на официальном сайте Python.

В случае, если у вас есть, есть вероятность, что PyCharm не сможет найти вашу установку Python, потому что она не находится в местоположении по умолчанию, обычно это C:Python27 или C:Python33 (для меня как минимум).

Итак, если вы установили Python и он все еще дает эту ошибку, то могут произойти две вещи:

  1. Вы используете virtualenv и этот virtualenv был удален или изменился путь к файлу. В этом случае вам нужно будет найти переход к следующей части этого ответа.
  2. Ваша установка python не находится по умолчанию, и в этом случае вам нужно будет найти ее местоположение и найти файл python.exe .

После того, как вы найдете необходимые бинарные файлы, вам нужно будет сказать, что PyCharm должны были выглядеть:

    Откройте диалог настроек CTRL + ALT + S

Затем вам нужно будет ввести interpreter в поле поиска:

Изображение 121464

Как вы можете видеть выше, вам нужно будет перейти к Project Interpreter а затем перейти к Python Interpreter . Местоположение выбрано для вас на приведенном выше изображении.

В стороне вы увидите несколько опций в виде значков, щелкните значок «Большая + , затем нажмите » local , потому что ваш интерпретатор находится на этом компьютере.

Как это исправить? «Ошибка: выберите допустимый интерпретатор Python»

Зайдите в Run-> Edit configurations затем выберите расположение интерпретатора Python для установленного Python ( python.exe ) затем после изменения примените изменения.

attached image.

У меня была такая проблема. Я изменил имя своего модуля, но старое имя все еще сохранялось кое-где. Я исправил это в плагине Python для IntelliJ IDEA — удалил старый модуль и воссоздал его из источников — а затем он работал в PyCharm. Возможно, это можно было бы исправить в PyCharm, я просто переключал IDE из-за разочарования.

how to fix this ? «Error: Please select a valid Python interpreter»

Go to run->Edit configurations then select Python interpreter location of the python installed ( python.exe ) then after change apply the changes.

attached image.

user avatar

user avatar

I had this problem. I had changed the name of my module, but the old name still persisted here and there. I fixed it in the Python plugin for IntelliJ IDEA — deleting the old module and recreating it from sources — and then it worked in PyCharm. It might have been possible to fix it in PyCharm, I was just switching IDEs out of frustration.

довольно неприятно, каждый раз, когда я загружаю существующий проект или создаю новый — он жалуется, что нет выбранного интерпретатора, и я должен предоставить путь к нему.

в моей установке python нет ничего необычного, она находится в C:/Python27 как и следовало ожидать. Он всегда работал, но последние несколько недель что-то изменилось.

Я запускаю Win7. Системная переменная PATH указывает на C:/Python27 как и должно быть.

Если я открою командная строка, команда python открывается так, как должна.

1 ответов

установка интерпретатора IDE по умолчанию исправила проблему, как упоминал Вадим. Найдены инструкции о том, как это сделать здесь.

эта конфигурация задает интерпретатор по умолчанию для новых проектов, обратите внимание на меню настроек по умолчанию, это не то же самое, что Файл / Настройки который задает параметры для текущего проекта.

Не совсем уверен, почему по умолчанию было отключено, но по крайней мере теперь я могу установить его снова. Проект настройка по умолчанию также была забыта, что любопытно, но проблема на другой день.

Спасибо, что помогли решить проблему за 14 минут, что заняло бы полдня траления через интернет или ожидания поддержки запросов.

Как выбрать интерпретатор python в PyCharm?

Доброго времени. Не понимаю, почему PyCharm не видит другие версии питона, хотя они установлены и именно из настроек самого PyCharm видны, а при создании конфигурации для проекта их уже нет.
sMdli5f.pngGiB02fU.png

Что я делаю не так?

  • Вопрос задан более трёх лет назад
  • 9995 просмотров
  • Facebook
  • Вконтакте
  • Twitter

sim3x

Смотрите в настройках проекта, а не настройках тестов

в сеттингах ищите django и название своего проекта

Settings
Project >:
— Project interpreter

  • Facebook
  • Вконтакте
  • Twitter

artgrosvil

Выбрал, но всё равно в проекте используется Python3.5
V1vFYYN.pngTu9ogXT.pngXIzCEJU.png

Please select a valid python interpreter pycharm что делать

Python Forum

Python Forum

All of a sudden Pycharm doesn’t run anymore (select valid interpreter)
  • 0 Vote(s) — 0 Average

I’ve done a whole bunch of coding in Pycharm. Now all of a sudden it won’t run any of my Python files anymore. It pulled up this menu:

[Image: Pycharmproblem.png]

As you can see, it’s demanding that I select a valid Python interpreter. However, when I try to choose one from the drop-down list, the only thing available is «Project Default (none).»

What gives? This thing was working before. My coding files still run in Geany.

OS = Kubuntu Linux 16.04 LTS. I haven’t made any significant changes to the OS. I did install the trial version of a help authoring tool named HelpBlocks. I also needed to reinstall the Kubuntu software install library, Discover. That shouldn’t have affected Python’s availability in PyCharm.

Edit: Now that I think about it, I did allow Pycharm to update itself.

Second edit: I seem to have found the interpreter in the configuration and now it works. I guess the update must have deselected it.

In any stage, while doing python programming in Pycharm, we can encounter this error — “No python interpreter configured for this project.”

This error usually occurs when you are programming in Python and particularly using PyCharm IDE. To solve this error first you have to know what is Python and PyCharm.

Python is an interpreter that can be used to execute the python code

PyCharm is an integrated development environment used in computer programming, especially for the Python programming language(though other languages are also supported) that can display the output of your python programs in the console with the help of the installed python interpreter. PyCharm provides some best features to its users and developers in the following aspects.

  • Code completion and inspection
  • Advanced debugging
  • Support for web programming and frameworks such as Django and Flask.

Now let’s come back to the solution.

Step 1: In the PyCharm window you can see the option of “Configure Python Interpreter” in the upper right corner.

Step 2: Click on this «Configure python interpreter» option. A settings window will appear in which the project interpreter will open.

You can also open a Project interpreter from the File option.

Go to File -> Settings -> Project -> Project Interpreter.

Step 3: In the “Project Interpreter” menu, you will get an option of selecting the project interpreter. I have a Python 3.6 project interpreter option because I am working with Python 3.6. Sometimes, there will be no option for a project interpreter. The reason can be either you have not installed python or your PyCharm is unable to locate a valid Python interpreter.

Step 4: Sometmies, you will not see a python interpretor in the dropdown, which means we need to guide pyhcharm on where the python interpreter is installed. To solve for this problem you can simply click on the “gear icon”.

Step 5: Click on “Add”.

Step 6: After this click on the “Existing Environment”.

Step 7: Then click on the “triple-dot” icon to locate python on your computer.

Note: You can follow the above steps only if you have installed python on your computer.

Step 8: If you don’t have Python then download and install it.

Now how to download and install python?

  • Go to “Google Chrome”.
  • Write “python install”.

You will find the home page of python.org. Here click on “Download Python 3.6.5” to download python.

Download the python interpreter and install it.

Step 9: 90% of the times, a python interpreter can be located automatically as was in my case. If you are able to find the python interpreter option in the dropdown, select and click on it.

Step 10: Click on the “Apply” button.

Step 11: Click “Ok”.

Now you can see that error is gone and you can happily work with your pycharm.

Step 12: After this, run any of your programs and the corresponding output will show up in the console.

I hope this article was helpful and you were able solve your error. Happy Coding!

You can also watch the following video if any of the above-mentioned steps are unclear. I am 100% sure that you will be able to solve error after following the instructions given in this article.

Понравилась статья? Поделить с друзьями:
  • Error please reinstall ivcam
  • Error pkgproblemresolver resolve generated breaks this may be caused by held packages kali linux
  • Error pkgbuild does not exist
  • Error pipe connected
  • Error penumerator code 2147023728