2013-04-15 65 views
3

我想在我的Python 3.3.0版本的Windows XP下安裝ephem包。在Python 3中安裝Ephem包

我首先嚐試從系統命令提示符pip install ephem路由。該進程中止並顯示錯誤消息無法找到vcvarsall.bat

我之前在網上閱讀過這樣的困難。以下是我在我的電腦安裝的mingw32 ,加入C:\ MinGW的\ BINPATH變量和提供庫/的distutils用新文件名爲distutils.cfg和內容:

[build] 
compiler=mingw32 

在運行任何現在安裝的命令(PIP,* easy_install的*和setup.py所有的工作方式相同)以下錯誤結果:

C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ilibastro-3.7.5 -IC:\Python33\ 
include -IC:\Python33\include -c extensions/_libastro.c -o build\temp.win32-3.3\ 
Release\extensions\_libastro.o 

cc1.exe: error: unrecognised command line option '-mno-cygwin' 

error: command 'gcc' failed with exit status 1 

我試圖理解和解決問題,但一直沒有成功。我甚至無法找到代碼中建立這樣的值的地方。

¿有人可以提供任何幫助嗎?請問ephem暗示的情況之一在中安裝Python模塊 3.3.0文檔「並非所有擴展都可以用MinGW或Cygwin構建,但很多都可以。」?

在此先感謝

帕科

+0

http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o – thkang

回答