I tried to install gmpy2 on my python distribution (Anaconda 64bit) and I did this by downloading the precompiled .PYD file from http://www.lfd.uci.edu/~gohlke/pythonlibs and put the file in the site-packages folder (I tried this with both the 32 bit and 64 bit versions). However when I ran it and tried to import gmpy2 it gave the following error: DLL load failed: %1 is not a valid Win32 application. I do not know how to fix this as everything I am using is 64 bit. I have looked at some of the other answers on this site but none of them seem to help. Does anyone know what I might try to do?
1 に答える
1
Christoph Gohlke のサイトから GMPY wheel ファイルをダウンロードした後、コマンド ウィンドウを開いて GMPY をダウンロードしたフォルダーに移動し、pipを使用してインストールする必要があります。
~\Downloads\> pip install gmpy2‑2.0.5‑cp27‑none‑win_amd64.whl
pip がない場合は、condaを使用して最初にインストールします。
~> conda install setuptools pip
注:を表すためにチルダを使用しましたC:\Users\<username>\
。
于 2015-05-04T05:56:27.940 に答える