为什么easy_install在我要求32x时安装64x

2024-09-28 05:28:36 发布

您现在位置:Python中文网/ 问答频道 /正文

它是在试图“帮助”吗?在

我正在运行win8 64x。我需要安装psycopg32x。我使用的命令如下所示in the heroku guide

easy_install http://www.stickpeople.com/projects/python/win-psycopg/2.4.6/psycopg2-2.4.6.win32-py2.7-pg9.2.2-release.exe

然后我看到它安装了

^{pr2}$

这是64x版本,不是我需要的32x版本。在

后来我出错了

ImportError: DLL load failed: %1 is not a valid Win32 application.

我在想,也许psycopg的windows32x安装程序被标错了,但这不太可能。在


Tags: installthein命令版本comhttpheroku
1条回答
网友
1楼 · 发布于 2024-09-28 05:28:36

您应该使用32位版本的cpython安装的easy_install。(easy_install不仅可以使用32位和64位版本的cpython,还可以使用pypy等python的其他实现)在

curl -O http://python-distribute.org/distribute_setup.py
python distribute_setup.py <= change this line to make use of 32bit version of cpython

相关问题 更多 >

    热门问题