내 컴퓨터 (64 비트 Windows 7)에 Python 2.7 및 GSL 1.15가 설치된 PyGSL을 설치하려고합니다. 나는 꽤 꼼짝 못하고 일부 도움이 필요하다. GSL은 잘 설치되었지만 래퍼가 문제였다. 웬일인지 나는 pygsl을 만들 수 없다. 외관상으로는 gcc는 문제이다 (다른 Windows 기계에 동일한 문제가있다). 또는 컴퓨터가 x86 인 동안 pygsl이 AMD64라는 파일을 사용하고있는 것 같습니다. pygsl을 위해 윈도우 바이너리를 사용하고 싶지만, 파이썬 2.5에만 존재하고, 프로젝트 2.6 이상이 필요합니다. 나는 두 윈도우 바이너리 GSL을 사용하고 소스에서 그것을 구축했지만, 나는 어느 쪽이든 같은 문제가 발생합니다. GSL에서 dll을 pygsl로 복사하려고 시도했지만 작동하지 않았습니다. 일부 포럼에서 gsl.dll이라는 파일을 언급했지만 찾을 수없는 것 같습니다. 또한 Cygwin을 사용하고 minGW32로 컴파일하려고 노력했습니다.PyGSL 설치 방법? (Windows 7, 64 비트, Python 2.7, GSL 1.15)
CMDS 나는 달렸다 :
python setup.py install
python setup.py build
python setup.py build_ext -i
python setup.py build --compiler=mingw32
어떤 아이디어? 감사.
건배,
베레 켓 프롬프트 cmd를 창 같이 Cygwin에서 동일한 메시지를 받았습니다. 오류 메시지 :$ /cygdrive/c/Python27/python.exe setup.py build_ext -i
numpy
Forcing DISTUTILS_USE_SDK=1
Building testing ufuncs!
running build_ext
building 'errno' extension
C compiler: gcc -g -DDEBUG -DMS_WIN64 -mno-cygwin -O0 -Wall -Wstrict-prototypes
compile options: '-DSWIG_COBJECT_TYPES=1 -DGSL_RANGE_CHECK=1 -DDEBUG=1 -DNUMERIC=0 -DPYGSL_GSL_MAJOR_VERSION=1 -DPYGSL_GSL_MINOR_VERSION=15 -UNDEBUG -IC:\Users\Bereket\gsl-1.15\include -IInclude -I. -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27\PC -c'
gcc -g -DDEBUG -DMS_WIN64 -mno-cygwin -O0 -Wall -Wstrict-prototypes -DSWIG_COBJECT_TYPES=1 -DGSL_RANGE_CHECK=1 -DDEBUG=1 -DNUMERIC=0 -DPYGSL_GSL_MAJOR_VERSION=1 -DPYGSL_GSL_MINOR_VERSION=15 -UNDEBUG -IC:\Users\Bereket\gsl-1.15\include -IInclude -I. -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27\PC -c src/init/errorno.c -o build\temp.win-amd64-2.7\Release\src\init\errorno.o
Found executable C:\cygwin\bin\gcc.exe
gcc -g -mno-cygwin -shared build\temp.win-amd64-2.7\Release\src\init\errorno.o -LC:\Users\Bereket\gsl-1.15\lib -LC:\Python27\libs -LC:\Python27\PCbuild\amd64 -lgsl -lgslcblas -lm -lpython27 -lmsvcr90 -o C:\Python27\Lib\pygsl-0.9.5\pygsl\errno.pyd
build\temp.win-amd64-2.7\Release\src\init\errorno.o: In function `add_errno':
/cygdrive/c/Python27/Lib/pygsl-0.9.5/src/init/errorno.c:14: undefined reference to `__imp__PyInt_FromLong'
/cygdrive/c/Python27/Lib/pygsl-0.9.5/src/init/errorno.c:20: undefined reference to `__imp__PyDict_SetItemString'
build\temp.win-amd64-2.7\Release\src\init\errorno.o: In function `initerrno':
/cygdrive/c/Python27/Lib/pygsl-0.9.5/src/init/errorno.c:37: undefined reference to `__imp__Py_InitModule4_64'
/cygdrive/c/Python27/Lib/pygsl-0.9.5/src/init/errorno.c:40: undefined reference to `__imp__PyModule_GetDict'
collect2: ld returned 1 exit status
error: Command "gcc -g -mno-cygwin -shared build\temp.win-amd64-2.7\Release\src\init\errorno.o -LC:\Users\Bereket\gsl-1.15\lib -LC:\Python27\libs -LC:\Python27\PCbuild\amd64 -lgsl -lgslcblas -lm -lpython27 -lmsvcr90 -o C:\Python27\Lib\pygsl-0.9.5\pygsl\errno.pyd" failed with exit status 1