pydot2
Ipythonノートブックを使用して正常にインストールしました。
%%bash
pip install pydot2
Collecting pydot2
Downloading pydot2-1.0.33.tar.gz
Requirement already satisfied (use --upgrade to upgrade): pyparsing in /Users/ram/anaconda/lib/python3.5/site-packages (from pydot2)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /Users/ram/anaconda/lib/python3.5/site-packages/setuptools-19.1.1-py3.5.egg (from pydot2)
Building wheels for collected packages: pydot2
Running setup.py bdist_wheel for pydot2
Stored in directory: /Users/ram/Library/Caches/pip/wheels/e5/2d/ca/55e0109fb619edaa42ca287d9e55519eeebebc9bbca35996f6
Successfully built pydot2
Installing collected packages: pydot2
Successfully installed pydot2-1.0.33
ターミナルで、pydot2 が存在することがわかります。Python では、 import pydot2
失敗しimport pydot
、1.0.33 ではなく pydot のバージョン 1.0.29 が表示されます。
$ pip freeze| grep pydot
pydot2==1.0.33
$ python
Python 3.5.1 |Anaconda 2.4.0 (x86_64)| (default, Dec 7 2015, 11:24:55)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import pydot
pydot.__version__
'1.0.29'
import pydot2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pydot2'
質問: pydot2 をインストールする前に pydot をアンインストールする必要がありますか? それ、どうやったら出来るの ?
注: デュアル Anaconda python env (2.7/3.5) があります。2.7 では、pydot がインストールされていません。私は最新の MacOS 10.11 を使用しています。
pydot 1.0.29 がシステムのどこにあるかわかりません。