通过PIP vcvarsall.bat错误安装python-DOCX [英] vcvarsall.bat error through pip install python-docx

查看:200
本文介绍了通过PIP vcvarsall.bat错误安装python-DOCX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行时 PIP安装python-DOCX 我遇到错误信息错误:无法找到vcvarsall.bat

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

这基本上是两种解决方法:

These are basically the two solutions:

1)安装VS2008

2)SET VS90COMNTOOLS = C:\\ Program Files文件\\微软的Visual Studio 9.0 \\ Common7 \\工具

这两个我已经做和错误仍然存​​在。有谁持另一种解决方案?

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

推荐答案

您应该使用Visual Studio 2010中,像Python 3.3与它建立的,因此满足所有依赖性所需。

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

1)安装VS10

2)SET VS100COMNTOOLS = C:\\ Program Files文件\\微软的Visual Studio 10.0 \\ Common7 \\工具(假设路径仍然是相同的)

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

这篇关于通过PIP vcvarsall.bat错误安装python-DOCX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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