ValueError when using pip or easy_install to install a package into winpython

我只是一个虾纸丫 提交于 2019-12-25 04:43:00

问题


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

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

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

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:

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']

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

Any suggestions would be appreciated.


回答1:


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.



来源:https://stackoverflow.com/questions/19609520/valueerror-when-using-pip-or-easy-install-to-install-a-package-into-winpython

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!