vcvarsall.bat error through pip install python-docx

北慕城南 提交于 2019-12-25 02:28:11

问题


When running pip install python-docx I encounter the error message error: Unable to find vcvarsall.bat.

These are basically the two solutions:

1) Install VS2008

2) SET VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools

Both I've done and the error persists. Does anyone hold another solution?


回答1:


You should be using Visual Studio 2010, as Python 3.3 was built with it, and therefore satisfies all dependencies needed.

1) Install VS10

2) SET VS100COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools (assuming that the path is still the same?)




回答2:


I saw that error message when installing the talib python package. I got it to work after reading this: http://www.python-forum.org/viewtopic.php?t=1761&p=2517



来源:https://stackoverflow.com/questions/22967718/vcvarsall-bat-error-through-pip-install-python-docx

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