from
1from xml.dom import minidom 2import collections 3 4import os 5 6import matplotlib.pyplot as plt 7import matplotlib as matplot 8import seaborn as sns 9%matplotlib inline 10```--------------------------------------------------------------------------- 11ModuleNotFoundError Traceback (most recent call last) 12<ipython-input-34-2ef533d57cc9> in <module>() 13 5 import os 14 6 15----> 7 import matplotlib.pyplot as plt 16 8 import matplotlib as matplot 17 9 import seaborn as sns 18 19ModuleNotFoundError: No module named 'matplotlib' 20 21 22 23上記のコードを打ち込むと 24ModuleNotFoundError: No module named 'matplotlib' 25とエラーが出てしまう 26 27環境としてはmacOS High Sierra バージョン10.13.5です 28pythonでpip install matplotlibを読み込ませ、installしたのですが、変わらず 29上記のエラーが出てしまうのですが、どのようにすれば改善できるのでしょうか? 30よろしくお願いします。 31 32・環境構築に関しては、ネットからanacondaをインストールしました。 33今回githubで参考にしているのですがその途中でエラーが出てしまいました。 34参考URLはこちらになります 35https://github.com/sekilab/RoadDamageDetector/blob/master/RoadDamageDatasetTutorial.ipynb 36 37・ターミナルでpip show matplotlibと実行した結果 38```Name: matplotlib 39Version: 2.2.2 40Summary: Python plotting package 41Home-page: http://matplotlib.org 42Author: John D. Hunter, Michael Droettboom 43Author-email: matplotlib-users@python.org 44License: BSD 45Location: /anaconda3/lib/python3.6/site-packages 46Requires: numpy, cycler, pyparsing, python-dateutil, pytz, six, kiwisolver 47Required-by: seaborn, scikit-image 48コード
・jupyter notebook上でimport sys;print(sys.version);print(sys.path)と実行した結果
3.6.6
1[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] 2['', '/anaconda3/envs/TensorFlow2/lib/python36.zip', '/anaconda3/envs/TensorFlow2/lib/python3.6', '/anaconda3/envs/TensorFlow2/lib/python3.6/lib-dynload', '/anaconda3/envs/TensorFlow2/lib/python3.6/site-packages', '/anaconda3/envs/TensorFlow2/lib/python3.6/site-packages/IPython/extensions', '/Users/yokookentarou/.ipython'] 3コード
ターミナルでsource activate TensorFlow2を実行できます?
回答1件
あなたの回答
tips
プレビュー