背景
我正在安装此walkthrough的波动性。我在Windows 7 64位安装上这样做,我安装了python 2.7。几个月前我安装了cygwin,大概6个月前将其删除了。我已经清除了我能找到的所有引用以及与之关联的所有文件。 python从哪里获得“-mno-cygwin”?任何帮助或链接将不胜感激!谢谢!
当前路径变量
C:\Python27\;
C:\Python27\Scripts;
C:\MinGW\bin;
C:\Perl64\site\bin;
C:\Perl64\bin;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;
c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;
c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;
%systemroot%\System32\WindowsPowerShell\v1.0\;
%TTPRO_APPDIR%;
C:\Program Files\TortoiseSVN\bin;
C:\Program Files (x86)\Lua\5.1;
C:\Program Files (x86)\Lua\5.1\clibs;
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
错误
C:\Users\<user>\Downloads\pycrypto-2.6.tar\dist\pycrypto-2.6\pycrypto-2.6>pyth
on setup.py build -c mingw32
running build
running build_py
running build_ext
running build_configure
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -Wall -std=c99 -O3 -fomit-frame-pointer -
Isrc/ -IC:\Python27\include -IC:\Python27\PC -c src/winrand.c -o build\temp.win-
amd64-2.7\Release\src\winrand.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
答案 0 :(得分:1)
这个answer表明-mno-cygwin选项可以在c:\ Python27 \ lib \ distutils \ cygwinccompiler.py中找到,并且它是一个可以删除的弃用选项。