PyCharm doesn't detect interpreter

后端 未结 7 1671
天涯浪人
天涯浪人 2021-02-19 13:29

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 Pytho

相关标签:
7条回答
  • 2021-02-19 13:58

    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

    0 讨论(0)
  • 2021-02-19 14:10

    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:\Python35\Python.exe

    0 讨论(0)
  • 2021-02-19 14:13

    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:\Python35\python.exe.
    

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

    0 讨论(0)
  • 2021-02-19 14:20

    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.

    0 讨论(0)
  • 2021-02-19 14:21

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

    C:\Users\yourUserName\AppData\Local\Programs\Python\Python36\python.exe

    Chose the above location as your project interpreter inside PyCharm.

    Depending on which python version you have, it could be either Python36\python.exe or Python35\python.exe.

    0 讨论(0)
  • 2021-02-19 14:22

    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:\Users\Skboy\PycharmProjects\dani Interpreter = C:\Users\Skboy\AppData\Local\Programs\Python\Python36-32\python.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:\Users\user1\AppData\Local\Programs\Python\Python36-32\python.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

    0 讨论(0)
提交回复
热议问题