在“找不到vcvarsall.bat"后,MinGW的pip编译器错误,仍然无法正常工作 [英] MinGW compiler for pip after "cannot find vcvarsall.bat" error, still does not work
问题描述
所以我试图做:
pip install pycrypto --upgrade
这导致了我的错误:
Cannot find "vcvarsall.bat"
which led me to this solution: How to use MinGW's gcc compiler when installing Python package using Pip?
所以我创建了一个distutils.cfg,现在pip使用MinGW.
So I created a distutils.cfg and now pip uses MinGW.
但我仍然收到错误消息:
But I still get an error:
error: command 'C:\\Program Files\\Cygwin\\bin\\gcc.exe' failed with exit status 1
请帮助.
我有一个指向安装日志的链接: https://dpaste.de/NhV9
I have a link to the log from the install: https://dpaste.de/NhV9
我使用的是Windows 7 64位,据我所知的最新MinGW和python 2.7.
I am using Windows 7 64 bit, the latest MinGW to my knowledge, and python 2.7.
推荐答案
如果您使用的是来自python.org的Python 2.7,则可以尝试
If you're using Python 2.7 from python.org, you could try the Microsoft Visual C++ Compiler for Python 2.7:
此软件包包含为Python 2.7软件包生成二进制文件所需的编译器和系统头文件集.
This package contains the compiler and set of system headers necessary for producing binary wheels for Python 2.7 packages.
这篇关于在“找不到vcvarsall.bat"后,MinGW的pip编译器错误,仍然无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!