2013-03-14 14 views
0

它試圖「有幫助」嗎?爲什麼easy_install在我詢問32x時安裝64x

我正在運行win 8 64x。我需要安裝psycopg 32x。我用的命令指出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 

然後我看到它安裝

Installed \venv\lib\site-packages\psycopg2-2.4.6-py2.7-win-amd64.egg 

這是64倍的版本,而不是32倍,我需要。

後來我得到錯誤

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

我在想,也許窗口32X安裝程序psycopg標記錯誤但那是不可能的。

回答

1

您應該使用由32位版本的cpython安裝的easy_install。 (easy_install的可不僅是32位和CPython中的64位版本,但像pypy蟒蛇的其他實現工作..)

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

我需要安裝Python 2.7 32X? – siamii 2013-03-14 00:39:55

+0

如果你想要安裝32位軟件包,可以 – thkang 2013-03-14 00:40:48

+0

我只想將我的django python應用程序部署到heroku。因此,只適用於32x python – siamii 2013-03-14 00:42:07

相關問題