PyCharm doesn't recognize my Python installation path

16,946

Solution 1

For PyCharm, in the IDE go to File -> Settings. In the Project Settings navigation panel, select Project Interpreter and then Python Interpreters, then in the right panel, click on the green plus (+) icon on the top right and select local. Navigate to the python executable you would like to specify as your interpreter.

Solution 2

You can also try this:

  • click on File
  • select Settings from the menu
  • in new Settings window click on Project and then Python interpreter
  • click on gear icon on the right, then on Add... option
  • in the Add python interpreter window select System interpreter from the list on the left
  • pick Python, click apply and you are done

Solution 3

I was having similar problems with PyCharm. Having installed both Python 2.7 and 3.5 I was only able to find the the "python.exe" file for python 2.7.

I tried reinstalling Python 3.5 and attempting to change the installation path to C:// but it lead to several errors. This is the work around I found for getting 3.5 on PyCharm as an interpreter.

Copy the python 3.5 directory in windows explorer.

Paste it into PyCharms choose local interpreter area.

Share:
16,946

Related videos on Youtube

ElektroStudios
Author by

ElektroStudios

Updated on September 16, 2022

Comments

  • ElektroStudios
    ElektroStudios about 1 year

    This is the same question as this else but for Python.

    The thing is that I've built my own installer package of Python interpreter (I've added modules and extras) and once installed I can't find the way to set the location of my custom Python installation dir in PyCharm IDE, I can't find any option to manually specify the location of python interpreter.

    While I don't know if exist that option I'm thinking in other alternative, If maybe the PyCharm IDE takes the original Python path from a registry value then it should be sufficient for set the location, but I don't know if pycharm uses a config file or a reg key to get the python location and where is this value to modify it, I need help.

    PS: I'm having the same problem for RubyMine IDE.

  • ElektroStudios
    ElektroStudios over 9 years
    Thanks for the solution, unfortunately for RubyMine IDE is totally different and I'm lost :(
  • rboy
    rboy over 9 years
    Sorry, I don't have RubyMine, but the platform itself is supposed to be the same for all JetBrains IDEs. I'm sure there is a simple way to add a local interpreter.. take a look at this, it might help.
  • ElektroStudios
    ElektroStudios over 9 years
    That's what I currently tried to do, but when I select my "ruby.exe" interpreter I still can't see the basic methods such as "print", etc. Anyways Thanks again, i will write a new question bout this