Pycharm ошибка интерпретатора

I'm new to programming and just started a course on Python. I want to use PyCharm, so I downloaded and intalled it (v. 4.5, community edition). I had previously installed Python 3.5 64-bit from pyt...

I’m new to programming and just started a course on Python. I want to use PyCharm, so I downloaded and intalled it (v. 4.5, community edition). I had previously installed Python 3.5 64-bit from python.org (I’m using Windows 10).

To start using PyCharm, I need a project interpreter, which I can select in the settings. As far as I’m concerned, the interpreter is «py.exe», but when I select it, I get this error message: «The selected file is not a valid home for Python SDK». I also tried to use every file whose name contained «python» or «py», and failed.

On every website and video I see, they select a file called «python.exe», but they’re using Python 3.4 or a previous version. I checked that PyCharm supports 3.5 («Initial support for Python 3.5»).

Is there anything I’m doing wrong? What should I do to be able to use PyCharm?

All replies are appreciated. Thanks in advance.

asked Sep 28, 2015 at 21:23

Asier R.'s user avatar

file > new project settings > project Interpreter > click in the drop down and select ‘show all’ > click the ‘+’ button >

Now, in the Virtualenv Environment tab under the New environment radio button, check the path in the ‘Base interpreter:’ field. For me, mine was set to an invalid path. Once I had corrected the path to point to python.exe I recreated my new project and PyCharm built the virtualenv.

For me there was a bit more too…. When creating the new project I expanded the drop down and had to verify the directory where the venv directory was being created. Once I had corrected the path here I had to click around a bit to get it to let me create the project.

I’m going to chaulk this up to a bug. I’m using Community edition.

answered Apr 22, 2019 at 15:37

DonkeyKong's user avatar

DonkeyKongDonkeyKong

96513 silver badges18 bronze badges

When creating a project in PyCharm, if the interpret is not already selected, in the drop down menu under the projects «Location:», you can click the gear-looking icon to the right of the interpreter option, and click «Add Local»; then select the file location of the python.exe file that you have installed. It will probably be C:Python35Python.exe

answered Sep 28, 2015 at 21:38

xponent's user avatar

xponentxponent

1412 gold badges2 silver badges10 bronze badges

2

I faced a Similar issue and was not able to find Python interpreter anywhere on the system.

The problem with it was that python was installed directly with default settings and there was no exe found in

C:Python35 

and to solve this i tried uninstalling and reinstalling with custom settings and selecting allow for all users as well which did the trick and path was set correctly to

C:Python35python.exe.

After whichPycharm was able to detect the interpreter on this path.

Sanoop Surendran's user avatar

answered Sep 5, 2016 at 6:05

Anmol G's user avatar

PyCharm project interpreter problem Resolved
I installed anaconda python distribution (Anaconda3-5.0.1-Windows-x86_64.exe) from the anaconda website. https://anaconda.org/anaconda/python
What it actually did was it re-installed my Python3.6.3 (pertinent to mention I have windows10, with pyCharm community & python 3.5 already but with the interpreter problem and while installing anaconda I chose the following settings and disabled my antivirus before my anaconda installation):

  1. selecting allow for all users
  2. installation path was set correctly and (stored safely for future)
  3. restart my Computer after installation.(not essential-but I did)
  4. opened Anaconda & Jet brian pycharm
  5. selected new project in PyCharm screen shot of my New project default Python interpreter location = C:UsersSkboyPycharmProjectsdani Interpreter = C:UsersSkboyAppDataLocalProgramsPythonPython36-32python.exe

Wow! my pyCharm started working for me,

Resolution : Python6.3 re-installation with proper custom setting

make a python test test1.py program file to print «hello python test world»

Run

now my Python Interpreter(automatically -by default select) Python 3.6.3
edit configuration & check for interpreter

(C:Usersuser1AppDataLocalProgramsPythonPython36-32python.exe)

Run
success test Run
worth to mention Anaconda Jupyter is a web based can also be used in case novice user are still having problems

JohnS's user avatar

JohnS

1,1721 gold badge11 silver badges22 bronze badges

answered Dec 6, 2017 at 17:54

Waseem A's user avatar

I have had the exact same problem and was unable to find the solution until just now. Hopefully this works for anyone that was struggling with it.

I went to the location of the Python 3.5 (32-Bit) in my C: Drive which it turns out is just a shortcut to the actual Python application, right click on it and select Open file location which should direct you to the application version of python — simply called ‘python’. This is the .exe file that PyCharm was looking for to use as the interpreter.

Now go to the configure interpreter menu in Pycharm and type in the file location of the actual python application. To get to mine I had to go to AppData/Local/Programs/Python/Python35-32. Click on the python.exe file and it should work.

This is my first post here so if its formatted incorrectly or doesn’t use the conventional terms — sorry. Let me know if the solution worked for anyone else with the problem or if I fluked it.

answered Jul 10, 2016 at 14:54

Ben Sharman's user avatar

If you kept the default settings while installing python, Your project interpreter for PyCharm will be:

C:UsersyourUserNameAppDataLocalProgramsPythonPython36python.exe

Chose the above location as your project interpreter inside PyCharm.

Depending on which python version you have, it could be either Python36python.exe or Python35python.exe.

answered Oct 15, 2016 at 14:30

Haris Ghauri's user avatar

Haris GhauriHaris Ghauri

5372 gold badges6 silver badges27 bronze badges

For me the following solution it worked:

My configuration:
Pycharm Community edition 2019.1.1
Anaconda distribution with python 3.7. Interpreter in standard location.

Problem:
Pycharm was not able to find python interpreter after reinstallation of anaconda distribution.

Solution:
— Make sure you run pycharm as admin (right click and run as admin). This was actually the critical step.
— Create new project (or open an existing one)
— Depending on the choice choose interpter or go to file > settings > project interpreter > choose small gear on rights side > add > on base interpreter choose the 3 dots > paste the location of the interpreter in the anaconda distribution.

Hope it helped someone. For me the blocking point was that for some reason pycharm was not launching with admin rights.

Blockquote

answered Oct 14, 2019 at 11:03

CVname's user avatar

CVnameCVname

3173 silver badges12 bronze badges

I’m new to programming and just started a course on Python. I want to use PyCharm, so I downloaded and intalled it (v. 4.5, community edition). I had previously installed Python 3.5 64-bit from python.org (I’m using Windows 10).

To start using PyCharm, I need a project interpreter, which I can select in the settings. As far as I’m concerned, the interpreter is «py.exe», but when I select it, I get this error message: «The selected file is not a valid home for Python SDK». I also tried to use every file whose name contained «python» or «py», and failed.

On every website and video I see, they select a file called «python.exe», but they’re using Python 3.4 or a previous version. I checked that PyCharm supports 3.5 («Initial support for Python 3.5»).

Is there anything I’m doing wrong? What should I do to be able to use PyCharm?

All replies are appreciated. Thanks in advance.

asked Sep 28, 2015 at 21:23

Asier R.'s user avatar

file > new project settings > project Interpreter > click in the drop down and select ‘show all’ > click the ‘+’ button >

Now, in the Virtualenv Environment tab under the New environment radio button, check the path in the ‘Base interpreter:’ field. For me, mine was set to an invalid path. Once I had corrected the path to point to python.exe I recreated my new project and PyCharm built the virtualenv.

For me there was a bit more too…. When creating the new project I expanded the drop down and had to verify the directory where the venv directory was being created. Once I had corrected the path here I had to click around a bit to get it to let me create the project.

I’m going to chaulk this up to a bug. I’m using Community edition.

answered Apr 22, 2019 at 15:37

DonkeyKong's user avatar

DonkeyKongDonkeyKong

96513 silver badges18 bronze badges

When creating a project in PyCharm, if the interpret is not already selected, in the drop down menu under the projects «Location:», you can click the gear-looking icon to the right of the interpreter option, and click «Add Local»; then select the file location of the python.exe file that you have installed. It will probably be C:Python35Python.exe

answered Sep 28, 2015 at 21:38

xponent's user avatar

xponentxponent

1412 gold badges2 silver badges10 bronze badges

2

I faced a Similar issue and was not able to find Python interpreter anywhere on the system.

The problem with it was that python was installed directly with default settings and there was no exe found in

C:Python35 

and to solve this i tried uninstalling and reinstalling with custom settings and selecting allow for all users as well which did the trick and path was set correctly to

C:Python35python.exe.

After whichPycharm was able to detect the interpreter on this path.

Sanoop Surendran's user avatar

answered Sep 5, 2016 at 6:05

Anmol G's user avatar

PyCharm project interpreter problem Resolved
I installed anaconda python distribution (Anaconda3-5.0.1-Windows-x86_64.exe) from the anaconda website. https://anaconda.org/anaconda/python
What it actually did was it re-installed my Python3.6.3 (pertinent to mention I have windows10, with pyCharm community & python 3.5 already but with the interpreter problem and while installing anaconda I chose the following settings and disabled my antivirus before my anaconda installation):

  1. selecting allow for all users
  2. installation path was set correctly and (stored safely for future)
  3. restart my Computer after installation.(not essential-but I did)
  4. opened Anaconda & Jet brian pycharm
  5. selected new project in PyCharm screen shot of my New project default Python interpreter location = C:UsersSkboyPycharmProjectsdani Interpreter = C:UsersSkboyAppDataLocalProgramsPythonPython36-32python.exe

Wow! my pyCharm started working for me,

Resolution : Python6.3 re-installation with proper custom setting

make a python test test1.py program file to print «hello python test world»

Run

now my Python Interpreter(automatically -by default select) Python 3.6.3
edit configuration & check for interpreter

(C:Usersuser1AppDataLocalProgramsPythonPython36-32python.exe)

Run
success test Run
worth to mention Anaconda Jupyter is a web based can also be used in case novice user are still having problems

JohnS's user avatar

JohnS

1,1721 gold badge11 silver badges22 bronze badges

answered Dec 6, 2017 at 17:54

Waseem A's user avatar

I have had the exact same problem and was unable to find the solution until just now. Hopefully this works for anyone that was struggling with it.

I went to the location of the Python 3.5 (32-Bit) in my C: Drive which it turns out is just a shortcut to the actual Python application, right click on it and select Open file location which should direct you to the application version of python — simply called ‘python’. This is the .exe file that PyCharm was looking for to use as the interpreter.

Now go to the configure interpreter menu in Pycharm and type in the file location of the actual python application. To get to mine I had to go to AppData/Local/Programs/Python/Python35-32. Click on the python.exe file and it should work.

This is my first post here so if its formatted incorrectly or doesn’t use the conventional terms — sorry. Let me know if the solution worked for anyone else with the problem or if I fluked it.

answered Jul 10, 2016 at 14:54

Ben Sharman's user avatar

If you kept the default settings while installing python, Your project interpreter for PyCharm will be:

C:UsersyourUserNameAppDataLocalProgramsPythonPython36python.exe

Chose the above location as your project interpreter inside PyCharm.

Depending on which python version you have, it could be either Python36python.exe or Python35python.exe.

answered Oct 15, 2016 at 14:30

Haris Ghauri's user avatar

Haris GhauriHaris Ghauri

5372 gold badges6 silver badges27 bronze badges

For me the following solution it worked:

My configuration:
Pycharm Community edition 2019.1.1
Anaconda distribution with python 3.7. Interpreter in standard location.

Problem:
Pycharm was not able to find python interpreter after reinstallation of anaconda distribution.

Solution:
— Make sure you run pycharm as admin (right click and run as admin). This was actually the critical step.
— Create new project (or open an existing one)
— Depending on the choice choose interpter or go to file > settings > project interpreter > choose small gear on rights side > add > on base interpreter choose the 3 dots > paste the location of the interpreter in the anaconda distribution.

Hope it helped someone. For me the blocking point was that for some reason pycharm was not launching with admin rights.

Blockquote

answered Oct 14, 2019 at 11:03

CVname's user avatar

CVnameCVname

3173 silver badges12 bronze badges

Error:

Error: Please select a valid Python interpreter

Screenshot:

How to fix this?

Gino Mempin's user avatar

Gino Mempin

23.1k27 gold badges91 silver badges120 bronze badges

asked Apr 12, 2018 at 8:53

navya vanapala's user avatar

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

attached image.

kHarshit's user avatar

kHarshit

10.4k10 gold badges53 silver badges70 bronze badges

answered Mar 6, 2020 at 5:35

Kaji Islam's user avatar

Your Pycharm has a hard time determining the path to the installed Python interpreter. Normally it automatically can, but if not, here are the steps:

  • Expand the environment
  • Then you will be asked for the path where Python is installed
  • Navigate to the directory where Python is installed and select the Python executable

This section from the Pycharm docs will help you:
https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html

Gino Mempin's user avatar

Gino Mempin

23.1k27 gold badges91 silver badges120 bronze badges

answered Apr 12, 2018 at 8:56

Roushan's user avatar

RoushanRoushan

3,8743 gold badges20 silver badges37 bronze badges

4

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.

answered Nov 21, 2020 at 23:48

Ion Freeman's user avatar

Ion FreemanIon Freeman

4646 silver badges17 bronze badges

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.

Я пытаюсь изучить 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.

Понравилась статья? Поделить с друзьями:
  • Pycharm как изменить цветовую схему
  • Sc551 00 ricoh ошибка
  • Sc500 ошибка ricoh mp2000
  • Sc500 ошибка ricoh 201
  • Sc error log удалить