Frage

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.

War es hilfreich?

Lösung

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.

Andere Tipps

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

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.

I had a similar problem. I have a MacBook Pro 2020. This solved it for me. NOTE make sure python is installed.

  1. Pycharm Preferences
  2. Add interpreter
  3. Add local interpreter
  4. Go to terminal and type -> which python3
  5. Copy the address and go back to pycharm
  6. Press Existing
  7. Press the three dots and add the address in there and find the install location Press ok and then you should find the new interpreter.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top