我正在使用Python 3.4.3和PostgreSQL 9.4.4在Windows 7(64位)上安装psycopg,使用wheel文件(from http://www.lfd.uci.edu/~gohlke/pythonlibs/#psycopg)和命令:无法在Windows 7上使用Python 3.4.3和PostgreSQL 9.4.4安装psycopg
pip install psycopg2-2.6.1-cp34-none-win_amd64.whl
我得到的错误:
psycopg2-2.6.1-cp34-none-win_amd64.whl is not a supported wheel on this platform.
更新: 我尝试使用的easy_install命令:
easy_install psycopg2-2.6.1.win-amd64-py3.4-pg9.4.4-release.exe
Searching for psycopg2-2.6.1.win-amd64-py3.4-pg9.4.4-release.exe
Reading https://pypi.python.org/simple/psycopg2-2.6.1.win-amd64-py3.4-pg9.4.4-re
lease.exe/
Couldn't find index page for 'psycopg2-2.6.1.win-amd64-py3.4-pg9.4.4-release.exe
' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for psycopg2-2.6.1.win-amd64-py3.4-pg9
.4.4-release.exe
error: Could not find suitable distribution for Requirement.parse('psycopg2-2.6.
1.win-amd64-py3.4-pg9.4.4-release.exe')
你的python安装是什么?运行python并在win32上粘贴第一行(例如'Python 2.7.10(默认,2015年5月23日,09:44:00)[MSC v.1500 64位(AMD64)]。 – kichik