I am using IntelliJ IDEA 14 on OSX for a Python project that uses a virtual environment. The program works fine both in the terminal and with the run command inside IDEA, but it does not recognize Python built-in types and functions.

I created a virtual environment and added it to my project structure, following the instructions below, which, according to the messages I read, should work, but I canβt understand what is going wrong.
- Added Python to
venv as an SDK project.

- Added Python to
venv as a Python interpreter in modules.

- Added Python in
venv as Python interpreter in Facets.

- Ensure that the selected Python interpreter is the selected SDK.

- These are global libraries.

[Update]
Following one of the comments below, I created a virtual environment from scratch. The built-in types for Python are now recognized, but the libraries in the venv folder are not.


source share