LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Anyone use PyCharm? pip and pycharm communication issues (https://www.linuxquestions.org/questions/programming-9/anyone-use-pycharm-pip-and-pycharm-communication-issues-4175631715/)

vysero 06-11-2018 12:26 PM

Anyone use PyCharm? pip and pycharm communication issues
 
Having trouble figuring out how to tell PyCharm where to look for modules. For instance, I downloaded serial in the terminal through pip and I can run scripts in the terminal. However, if I try to run the same script in PyCharm it says it can't find the moduel. I find this odd because in the Project Interpreter settings for PyCharm it shows that python 3.5 is the interpreter and that pip is an installed package.

rbtylee 06-12-2018 05:25 AM

While I don't use PyCharm there is a stackoverflow thread that addresses this issue: How do I import modules in pycharm?

It seems you have to add the path in PyCharm settings under File → Settings → Project Settings → Project Interpreter. The specific menu location may vary depending upon what version of the program you are using.


All times are GMT -5. The time now is 11:41 AM.