私はPythonには新しく、すべてを設定しようとしています。私は再インストールしようとしましたが、 "import matplotlib.pyplot plt"を試してもエラーが出ることはありますが、誰でもこの意味を知っていますか?import matplotlib.pyplot not working
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
import matplotlib.pyplot as plt
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py", line 23, in <module>
from matplotlib.figure import Figure, figaspect
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/figure.py", line 16, in <module>
import artist
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/artist.py", line 6, in <module>
from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/transforms.py", line 34, in <module>
from matplotlib._path import affine_transform
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so: no matching architecture in universal wrapper
ありがとうございます!
、 私は(私はOSXを使用しています)python.orgから.dmgファイルをダウンロードし、その後maplotlibのために私が最初に私.eggをeasy_installをしようとしました彼らのサイトからダウンロードした後、私は別の.ggを試してみました。そして、.dmgを試しました(後で.dmgが32ビット用であったのを知っていましたが、私は64です)。 最後に私はpythonを含むすべてのものをアンインストールし、今回は私がpycodeをインストールしたmatplotlibを使用して再起動しました。これはxcodeがインストールされていない(gccはありません)のでダウンロードできません。 – Mark
感謝をインストールしましたか – iRoygbiv
easy_install?はい、Xpathを_path.soにする必要があります – Mark