Cannot find Anaconda after updating to PyCharm Community Edition 2017.3.3

Answered

Hello,
I'm running windows 10
I updated my PyCharm Community Edition to version 2017.3.3
I have anaconda istalled on my machine at C:\Program Files\Anaconda3\Lib\site-packages
If go into command line and do: pip install requests I see "Requirement already satisfied: requests in c:\program files\anaconda3\lib\site-packages"
I go into PyCharm Community edition 2017.3.3
I create a new project named Anaconda1
I create .py file Test1.py with the following contents:

from requests import get
if __name__ == '__main__':
    print('Hello, World')


I run the file and see the following:
C:\Users\MyName\venv\Anaconda1\Scripts\python.exe C:/Users/MyName/PycharmProjects/Anaconda1/Test1.py
Traceback (most recent call last):
  File "C:/Users/MyName/PycharmProjects/Anaconda1/Test1.py", line 1, in <module>
    from requests import get
ImportError: No module named 'requests'

Process finished with exit code 1

Question: What do I need to do to get PyCharm to find the Anaconda modules. Am quite sure that I've missed something basic.

0
1 comment

You need to add your Anaconda3 interpreter as your project interpreter to Pycharm as described here: https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#local-interpreter. Or you could install `requests` package for your existing interpreter: https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html to fix this ImportError.

0

Please sign in to leave a comment.