使用pip或easy_install将软件包安装到WinPython中时发生ValueError [英] ValueError when using pip or easy_install to install a package into winpython

查看:73
本文介绍了使用pip或easy_install将软件包安装到WinPython中时发生ValueError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前正在上一门科学课程,并使用python进行计算和绘图. Uni使用 winpython 2.7.5.3 ,这是我安装的版本,因为它具有我需要的所有标准软件包.我正在使用 windows 7 64bit

Currently doing a science course and using python to do calculations and plotting. The Uni uses winpython 2.7.5.3 This is the version I've installed as it has all the standard packages I need. I'm using windows 7 64bit

但是我的课程开始有所不同,我需要安装其他软件包,尤其是Astropy.

However my course has started diverging and I need to install additional packages, specifically Astropy.

最初我有一个vcvarsall.bat错误,此错误是通过安装Visual C ++ 2008 express解决的.

Initially I had a vcvarsall.bat error, this was fixed by installing Visual C++ 2008 express.

在此之后,包含的1.4.1版pip和easy_install-2.7都找到了正确的软件包,但是在安装时给我一个错误:

After this both the included version 1.4.1 of pip and easy_install-2.7 find the correct packages but on installing give me an error:

文件 "C:\ WinPython \ python-2.7.5.amd64 \ lib \ distutils \ msvc9compiler.py",行 29 9,在query_vcvarsall中

File "C:\WinPython\python-2.7.5.amd64\lib\distutils\msvc9compiler.py", line 29 9, in query_vcvarsall

raise ValueError(str(list(result.keys())))

ValueError:[u'path']

ValueError: [u'path']

不幸的是,我此时此刻陷入困境.这是我需要安装的少数几个软件包中的第一个,希望这是我可以为所有它们修复的一个错误

I am unfortunately stuck at this point. This is the first of a few packages I need to install, hopefully this is a single error I can fix for all of them

任何建议将不胜感激.

推荐答案

我对Windows不太熟悉,但是我建议尝试使用Python发行版,例如有思想的檐篷应该都具有Windows版本,并且默认情况下包括一堆软件包(包括Numpy,Scipy,IPython,Matplotlib和Astropy).第一个是免费的,而第二个则为学生和学者提供免费许可证.

I'm not too familiar with Windows, but I would suggest trying to use a Python distribution such as Anaconda Python Distribution or Enthought Canopy which should both have Windows versions, and include a whole bunch of packages by default (including Numpy, Scipy, IPython, Matplotlib, and Astropy). The first is free, while the second has free licenses for students and academics.

这篇关于使用pip或easy_install将软件包安装到WinPython中时发生ValueError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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