I have psycopg2 installed in virtual env, but still getting importerror psycopg2
问题 I followed the following steps: [I am using Windows 8, Python 2.7.6] I created a virtual environment venv and then did pip install on requirements.txt to install all the libraries. I had to explicitly create a file called config.py to set the os.environ variables. Then, I am doing import config in other files. I have installed postgresql and added bin folder to environment path psycopg2 was failing to install from running requirements.txt. So, I downloaded the zip with setup.py from online,