Windows XP中的Cython问题:“错误:无法找到vcvarsall.bat" [英] Cython problem in Windows XP: "error: Unable to find vcvarsall.bat"

查看:203
本文介绍了Windows XP中的Cython问题:“错误:无法找到vcvarsall.bat"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cython版本是0.13,Python 3.1 我已经尝试了Cython常见问题解答中的所有解决方案",但均无济于事.我的Visual Studio版本是7.1,其目录不包含vcvarsall.bat.这个问题有解决办法吗?

Cython version is 0.13, Python 3.1 I have tried all "solutions" in Cython FAQ, but to no avail. My version of Visual Studio is 7.1 and its directory doesn't contain vcvarsall.bat. Is this problem have a solution?

推荐答案

SO搜索,您将对此进行充分的讨论.

SO search and you will find ample discussion on this.

在Windows上运行setup.py install时,distutils查找vcvarsall.bat来运行.

When you run setup.py install on windows, distutils looks for vcvarsall.bat to run.

关于vcvarsall.bat

VCVarsall.bat是Visual Studio中的Visual Studio命令提示符工具.它允许您为集成开发环境(IDE)设置各种选项,以及从命令行构建,调试和部署项目.

VCVarsall.bat is Visual Studio Command Prompt tool in Visual Studio. It allows you to set various options for the integrated development environment (IDE) as well as build, debug, and deploy projects from the command line.

如果找不到该文件怎么办

解决方案1:搜索文件

Solution 1: Hunt the file

  1. distutils具有vcvarsall.bat的硬编码路径.
  2. 查找以vc * .bat或vc * .cmd开头的文件.该文件为MS编译器工具链设置命令行环境.该位置对于Visual Studio安装的不同版本不一致.如果运行的是32位版本,则应该可以找到vcvars32.bat.
  3. 将其放入distutils期望的目录中.

这篇关于Windows XP中的Cython问题:“错误:无法找到vcvarsall.bat"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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