0
我從這個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
好吧,你正試圖從我在這裏看到的安裝pycrypto。由於某種原因GMP或MPIR庫沒有找到,它正試圖自動糾正這個 – gabeio
@gabeDel的權利。那麼它在哪裏尋找「-mno-cygwin」?我無法弄清楚它是如何破壞我的構建嘗試。 – toosweetnitemare
顯然是在你正在運行的setup.py文件中,並且它注意到GMP或MPIR不在那裏,所以它要麼嘗試獲得其中一個或者盲目地試圖繼續並執行那個我猜測的命令在原始的setup.py中,請檢查pycrypto的setup.py文件中是否有長字符串...但是您是否已經在C:\ MinGW \ bin \ gcc.exe中安裝了gcc? – gabeio