manage runserver outside PyCharm OK, inside PyCharm, cannot find imports... HELP!
Answered
I am having issues with PyCharm giving me an import error on pyOpenSSL..
I used PyCharm to install the library into the selected build environment (virtenv)
The strange thing is that on the command line it works FINE.
Ie manage.py runserver (Being a Django App) and all works as expected...
Only when I run in PyCharm does the import error occur saying it cannot find the library.
HELP!
Please sign in to leave a comment.
Please contact pycharm-support@jetbrains.com with screenshots that show the issue and your Django settings from Settings| Languages&Frameworks| Django. Thank you!
Sorted the issue
It was due to some virtualenv changes I did and forgot I set the run-configuration on a specific virtualenv, and not the project default.
So, it was running it in a virtend that did not have the library installed...
James