在Python 3中安装Ephem软件包 [英] Installing Ephem package in Python 3

查看:333
本文介绍了在Python 3中安装Ephem软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows XP下的Python 3.3.0版本中安装 ephem 软件包.

I would like to install the ephem package in my Python 3.3.0 version under Windows XP.

我首先从系统命令提示符下尝试了 pip install ephem 路由.进程中止,错误消息为无法找到vcvarsall.bat .

I tried first the pip install ephem route from the system command prompt. The process aborted with the error message of Unable to find vcvarsall.bat.

我在网络上阅读过这样的困难的先前建议.之后,我在计算机中安装了 mingw32 ,将 C:\ MinGW \ bin 添加到 PATH 变量中,并提供了 Lib/distutils 和一个名为 distutils.cfg 的新文件,其内容为:

I read prior advice on the net for such a difficulty. Following it I installed mingw32 in my computer, added C:\MinGW\bin to the PATH variable and provided Lib / distutils with a new file called distutils.cfg and the content:

[build]
compiler=mingw32

现在运行任何安装命令( pip ,* easy_install *和 setup.py 都一样)会出现以下错误结果:

On running now any of the install commands (pip, *easy_install* and setup.py all work the same) the following error results:

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

我试图理解并解决问题,但是没有成功.我什至无法在代码中找到建立这些值的地方.

I have tried to understand and solve the problem, but have been unsuccesful. I have not been able even to find the place in the code where such values are established.

¿有人可以提供帮助吗? ephem 3.3.0文档安装Python模块所提及的一种情况,其中并非所有扩展都可以使用MinGW构建或Cygwin,但很多可以."?

¿Could somebody provide any help? ¿Would ephem be one of the cases alluded by Installing Python modules in the 3.3.0 Documentation with "Not all extensions can be built with MinGW or Cygwin, but many can."?

预先感谢

Paco

推荐答案

以下是python软件包的Windows二进制文件的非常有用的页面:

Here is an extremely useful page of Windows binaries of python packages: http://www.lfd.uci.edu/~gohlke/pythonlibs/.

它包括 pyephem 的二进制文件.

这篇关于在Python 3中安装Ephem软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆