经过长时间的尝试:我安装了 psycopg2==2.9.1 并 安装了 pip
我尝试将其添加到我能找到的所有解释器路径中,但仍然不断收到此消息: 错误消息
我也尝试重新启动 pycharm,使缓存无效..
当尝试使用 pycharm 安装它时,我收到此错误消息:
Collecting psycopg2==2.9.1
Using cached psycopg2-2.9.1.tar.gz (379 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: psycopg2
Building wheel for psycopg2 (setup.py): started
Building wheel for psycopg2 (setup.py): finished with status 'error'
Running setup.py clean for psycopg2
Failed to build psycopg2
Installing collected packages: psycopg2
Running setup.py install for psycopg2: started
Running setup.py install for psycopg2: finished with status 'error'
ERROR: …Run Code Online (Sandbox Code Playgroud)