Blenderでsympyを試してみたいと思っています(v2.76、Python 3.4.2 Console、Windows 8.1)。 Blender SEのanswer、GithibのZIP形式でsympyをダウンロードし、sympyフォルダをC:\ Program Files \ Blender \ 2.76 \ python \ lib \ site-packagesに移動しました。私は外部のライブラリをインストールする方法がわからないmpmathをBlenderの外部ライブラリとしてインストールするにはどうしたらいいですか?
>>> import sympy
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "C:\Program Files\Blender Foundation\Blender\2.76\python\lib\site-packages\sympy\__init__.py", line 20, in <module>
raise ImportError("SymPy now depends on mpmath as an external library. "
ImportError: SymPy now depends on mpmath as an external library. See http://docs.sympy.org/latest/install.html#mpmath for more information.
:私はブレンダーを開き、Pythonコンソールでsympyをインポートしようとしたときしかし、私は次のエラーを得ました。私は、ImportErrorに記載されているlinkに行きました。私はpip install mpmath
を見ました。私はCMDでそれを試みたが、これを得た:私はしばらく前にアナコンダをインストールした
>pip install mpmath
Requirement already satisfied (use --upgrade to upgrade): mpmath in c:\anaconda3
\lib\site-packages
ので、私はそれがこの出力を持っていることは理にかなって思います。 mpmathをBlenderの外部ライブラリとしてインストールするにはどうすればsympyをインポートできますか?
sympyのように、mpmathをblendersのpythonフォルダにインストールします。 mpmathが 'c:\ anaconda3 \ .... 'にインストールされていることを知っているpythonをインストールしたシステムでpipを実行しています。既存のパスを[' sys.path']に追加することもできます(https://docs.python .org/3/library/sys.html#sys.path) – sambler
@sambler That works、ありがとう。 'sys.path'に言及した時、それは輸入についてのことだったのでしょうか?これは私にはもっと意味がありました。私もGithubから[mpmath](https://github.com/fredrik-johansson/mpmath)をダウンロードし、必要に応じてmpmathフォルダをコピーすることができました。それはBlender SEの答えのようでしたが、sympyの代わりにmpmathを使っていました。私が見たところでは、WindowsにAnacondaがインストールされているので、PYTHONPATHに "c:\ anaconda3 \ lib \ site-packages"を追加するだけで、Githubから何もダウンロードする必要はありません。私はsympyとmpmathフォルダを削除することができ、それでも動作します。 – DragonautX
@sambler私は答えとしてあなたのコメントを受け入れることができます。もう一度、ありがとう。 – DragonautX