- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
当我尝试构建一个包时:
C:\Linter\intlib\PYTHON>python setup.py build
我收到此错误消息:
running build
running build_ext
building 'LinPy' extension
error: Unable to find vcvarsall.bat
这是我的 Python 版本:
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)] on win32
我在 Windows 10 x64 上工作。我知道 this线程和其他几十个(如 this 和 this 等等)。所以,我想我几乎尝试了一切,但没有任何效果。似乎所有这些线程都已过时,所以我需要一些新收据。顺便提一句。我试过这个:
SET VS90COMNTOOLS=%VS100COMNTOOLS%
还有这个(在 Visual Studio 2015 Visual Studio 命令提示符中):
set DISTUTILS_USE_SDK=1
我在我的机器上到处寻找 vcvarsall.bat
,但找不到。
我调查了这个文件夹 C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
,但它不包含任何 .bat
文件。无论如何,在我进行了所有操作之后 python setup.py build
仍然会引发完全相同的错误。所以,我需要帮助。谢谢!
最佳答案
这个问题是因为您没有为您尝试运行的接受构建安装编译器。
根据 MS Python 工程社区,以下是您可能需要的内容,
Python Version |You will need
------------------------------------
3.5 and later |Visual C++ Build Tools 2015 or Visual Studio 2015
3.3 and 3.4 |Windows SDK for Windows 7 and .NET 4.0
|(Alternatively, Visual Studio 2010 if you have access to it)
2.6 to 3.2 |Microsoft Visual C++ Compiler for Python 2.7
您需要安装:Windows SDK for Windows 7 and .NET 4.0或 VS 2010
来源:How to deal with the pain of “unable to find vcvarsall.bat”
关于python - Windows 10 和无法找到 vcvarsall.bat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37534000/
我已经尝试安装 Boost Libraries 5 个月了,是的,非常尴尬,目前这是我遇到的错误。 我在 Windows 7 64 位上运行它。 boost 1_59_0。 我使用 Visual St
这个问题已经有答案了: error: Unable to find vcvarsall.bat (42 个回答) 已关闭 9 年前。 我正在使用 python 2.7.3,并且正在尝试安装 Pytho
我知道还有一个问题here已经,但我无法理解答案。根据this answer ,我只需要添加一个变量。但是,我不知道变量在哪里创建以及它位于何处。通常,我只处理文件和文件夹,所以我不知道如何添加变量。
可能很多人遇到过这个错误,当使用setup.py安装python2.7图像处理模块PIL时,python默认会寻找电脑上以安装的vs2008.如果你没有安装vs2008,会出现Unable to f
我使用的是 Python 3.5.2 版。 我正在尝试编辑 MSWord 文档中的单词和段落。 在此之前,我需要安装 docx 模块。 在命令行中我将其指向路径: C:\Users\d\AppData
从上周开始,我试图解决这个问题,但无法修复这个错误。虽然,我尝试安装,但出现以下错误: C:\Users\#######>pip install pyproj Collecting pyproj
这个问题在这里已经有了答案: error: Unable to find vcvarsall.bat (42 个答案) 关闭 7 年前。 我正在尝试使用 pip 在我的计算机上安装 Scrapy。在
N久没有开始写博客了,总觉得要随便记点东西,岁月蹉跎,曾经搞得一些东西、技术、工具,说丢也就丢了,点点滴滴还是要记录一下吧。。。 在windows下使用pip安装一些python的第三方库,
我知道如何使用 Popen 运行一个 .bat 文件。在这种情况下,我需要首先运行 vcvarsall.bat 并初始化编译器工具,然后在同一环境中运行实际使用编译器工具的第三部分 .bat。最好的方
这个问题已经有答案了: error: Unable to find vcvarsall.bat (42 个回答) 已关闭 9 年前。 我使用 Windows 7 来开发 Django 1.3.7。现在
我尝试安装 Python 包 dulwich : pip install dulwich 但我收到一条神秘的错误消息: error: Unable to find vcvarsall.bat 如果我尝
尝试安装 mpi4py 并在运行时遇到问题 easy_install mpi4py 并得到: error: Setup script exited with error: Unable to find
我正在尝试用 Python 创建一个投资组合优化应用程序以供工作。所需模块之一是 CVXOPT。当我尝试安装该模块时,出现系统无法找到 vcvarsall.bat 的错误。我发现有几个人遇到了同样的问
我有 Python 2.7 并且我正在尝试使用 PyQuery,所以为了测试我只是输入了“import PyQuery”并且我得到了一个错误: Traceback (most recent call
这个问题在这里已经有了答案: Getting "error: Unable to find vcvarsall.bat" when running "pip install numpy" on wi
我在运行我的脚本时遇到了以下错误 Traceback (most recent call last): File "mysql.py", line 2, in import MySQLd
当我尝试构建一个包时: C:\Linter\intlib\PYTHON>python setup.py build 我收到此错误消息: running build running build_ext
我已经安装了 MSVC++ 2010 Express,我的 vcvarsall.bat 文件位于 C:\Program Files\Microsoft Visual Studio 10.0\VC,它位
我正在开发 Vista,并使用 Python 2.6.4。我正在使用一个使用 Python 脚本的软件,但遇到了消息: cannot find vcvarsall.bat 所以,我安装了 Visual
这个问题在这里已经有了答案: 关闭 9 年前。 Possible Duplicate: error: Unable to find vcvarsall.bat 我正在尝试为 python 安装 MyS
我是一名优秀的程序员,十分优秀!