我会做一段时间,我正在做这些事情
? ~ cd ~/project
? project source vProject/bin/activate
(vProject)? project cd edu
(vProject)? edu pip install pillow
Requirement already satisfied (use --upgrade to upgrade): pillow in /home/hadi/project/vProject/lib/python2.7/site-packages
Run Code Online (Sandbox Code Playgroud)
以及我安装psycopg2的那一刻
(vProject)➜edupip install psycopg2
我收到了这个错误
Collecting psycopg2
Using cached psycopg2-2.6.1.tar.gz
Building wheels for collected packages: psycopg2
Running setup.py bdist_wheel for psycopg2
Complete output from command /home/hadi/project/vProject/bin/python -c "import setuptools;__file__='/tmp/pip-build-K4RBgE/psycopg2/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp_YVqgFpip-wheel-:
running bdist_wheel
...
In file included from psycopg/psycopgmodule.c:27:0:
./psycopg/psycopg.h:31:22: fatal error: libpq-fe.h: No such file or directory …Run Code Online (Sandbox Code Playgroud)