Reputation: 3879
I'm using IntelliJ IDEA 14 on OSX for a Python project that uses a virtual environment. The program runs fine both in the terminal and using the run command inside IDEA, but it is not recognising Python built in types and functions.
I created the virtual environment and added it to my Project Structure following the steps below, which according to posts I read, should work, but I cannot figure out what is going wrong.
venv
as the Project SDK.venv
as Python interpreter in Modules.venv
as the Python interpreter in Facets.[Update]
Following one of the comments below, I recreated the virtual environment from scratch. The built-in types for Python are now recognised, but the libraries in the venv folder are not.
Upvotes: 5
Views: 2854
Reputation: 31
You need to put the Python 2.7.x interpreter library in the dependencies of your python module. Having the python SDK is not enough.
Upvotes: 3