2016-12-10 26 views
0

CatMAPというプログラムを使用しようとしています。これはgmpy依存関係を大いに利用しています(インストール手順に基づいてgmpyではなくgmpyだと思います)。Python 2(Windows)のAnacondaディストリビューションでgmpyをインストールする

私はAnaconda経由でPython 2.7.12を持っていますが、gmpyのインストールには多くの問題があります。 pip install gmpyを実行しても動作せず、Anaconda Cloudで見つかったすべてのバージョンはLinux用です。助言がありますか?

pip install

方法からのエラーメッセージを以下に示す:

Collecting gmpy 
    Using cached gmpy-1.17.zip 
Building wheels for collected packages: gmpy 
    Running setup.py bdist_wheel for gmpy ... error 
    Complete output from command C:\Users\andre\Anaconda3\envs\python2\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\andre\\appdata\\local\\temp\\pip-build-wu9jm7\\gmpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\andre\appdata\local\temp\tmphhh_2jpip-wheel- --python-tag cp27: 
    running bdist_wheel 
    running build 
    running build_ext 
    building 'gmpy' extension 
    creating build 
    creating build\temp.win-amd64-2.7 
    creating build\temp.win-amd64-2.7\Release 
    creating build\temp.win-amd64-2.7\Release\src 
    C:\Users\andre\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\andre\Anaconda3\envs\python2\include -IC:\Users\andre\Anaconda3\envs\python2\PC /Tcsrc/gmpy.c /Fobuild\temp.win-amd64-2.7\Release\src/gmpy.obj 
    gmpy.c 
    c:\users\andre\appdata\local\temp\pip-build-wu9jm7\gmpy\src\gmpy.h(30) : fatal error C1083: Cannot open include file: 'gmp.h': No such file or directory 
    error: command 'C:\\Users\\andre\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2 

    ---------------------------------------- 
    Failed building wheel for gmpy 
    Running setup.py clean for gmpy 
Failed to build gmpy 
Installing collected packages: gmpy 
    Running setup.py install for gmpy ... error 
    Complete output from command C:\Users\andre\Anaconda3\envs\python2\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\andre\\appdata\\local\\temp\\pip-build-wu9jm7\\gmpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\andre\appdata\local\temp\pip-uvzbnt-record\install-record.txt --single-version-externally-managed --compile: 
    running install 
    running build 
    running build_ext 
    building 'gmpy' extension 
    creating build 
    creating build\temp.win-amd64-2.7 
    creating build\temp.win-amd64-2.7\Release 
    creating build\temp.win-amd64-2.7\Release\src 
    C:\Users\andre\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\andre\Anaconda3\envs\python2\include -IC:\Users\andre\Anaconda3\envs\python2\PC /Tcsrc/gmpy.c /Fobuild\temp.win-amd64-2.7\Release\src/gmpy.obj 
    gmpy.c 
    c:\users\andre\appdata\local\temp\pip-build-wu9jm7\gmpy\src\gmpy.h(30) : fatal error C1083: Cannot open include file: 'gmp.h': No such file or directory 
    error: command 'C:\\Users\\andre\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2 

    ---------------------------------------- 
Command "C:\Users\andre\Anaconda3\envs\python2\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\andre\\appdata\\local\\temp\\pip-build-wu9jm7\\gmpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\andre\appdata\local\temp\pip-uvzbnt-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\andre\appdata\local\temp\pip-build-wu9jm7\gmpy\ 

答えて

0

CatMAPためにmpmathを使用gmpyのみmpmathの性能を向上させるために必要とされるチャンスがあります。それが真であるとすると、mpmathgmpyまたはgmpy2のいずれかをサポートするので、gmpy2が動作します。

あなたがgmpygmpy2here

ためのピップ互換性のある車輪を見つけることができます
関連する問題