私はPython27を使用しています
私のPATHには含まれています
C:\MinGW\libexec\gcc\mingw32\4.6.2
C:\MinGW\bin
C:\MinGW\msys\1.0\bin
C:\Python27\
C:\Python27\Scripts
私の PYTHONPATH には
C:\Python27
C:\Python\Lib\site-packages
特定のパッケージをインストールしようとすると、gcc でエラーが発生し続けます
cc1.exe: error: unrecognized command line option '-mno-cygwin'
それが原因のようですが、これを修正する方法に関する情報を見つけることができませんでした。
エラーの例:
pip install ctypes
....
building '_ctypes' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Isource/libffi_msvc -IC:\Python27\Lib\site-packages\numpy\core\include -IC:\boost_1_53_0 -IC:\Python27\include -IC:\Python27\PC -c source/_ctypes.c -o
build\temp.win32-2.7\Release\source\_ctypes.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
同じ問題を抱えた別の
pip install bzr
....
building 'bzrlib._annotator_pyx' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DWIN32 -IC:\Python27\Lib\site-packages\numpy\core\include -IC:\boost_1_53_0 -IC:\Python27\include -IC:\Python27\PC -c bzrlib/_annotator_pyx.c -o build\
temp.win32-2.7\Release\bzrlib\_annotator_pyx.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
Cannot build extension "bzrlib._annotator_pyx".