前提・実現したいこと
python3でcufflinksをインストールしたらnumpyが使えなくなりました。
再び使えるようにしたいです。
よろしくお願いします。
発生している問題・エラーメッセージ
cufflinksを使いたいと思い、conda install ~を試みた。
しかしcufflinksはcondaではインストールできないようなので、pipで入れることを試みた。
管理者権限でコマンドプロンプトを起動したり、--ignore-installedを加えることで一応インストールできた。
その後、numpy.testing._privateというモジュールは無いと言われた。
ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-d527467d25aa> in <module> ----> 1 get_ipython().run_line_magic('matplotlib', 'inline') 2 import pandas as pd 3 import numpy as np 4 import matplotlib.pyplot as plt 5 import seaborn as sns ~\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth) 2285 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals 2286 with self.builtin_trap: -> 2287 result = fn(*args,**kwargs) 2288 return result 2289 <decorator-gen-108> in matplotlib(self, line) ~\Anaconda3\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k) 185 # but it's overkill for just that one bit of state. 186 def magic_deco(arg): --> 187 call = lambda f, *a, **k: f(*a, **k) 188 189 if callable(arg): ~\Anaconda3\lib\site-packages\IPython\core\magics\pylab.py in matplotlib(self, line) 97 print("Available matplotlib backends: %s" % backends_list) 98 else: ---> 99 gui, backend = self.shell.enable_matplotlib(args.gui) 100 self._show_matplotlib_backend(args.gui, backend) 101 ~\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py in enable_matplotlib(self, gui) 3341 """ 3342 from IPython.core import pylabtools as pt -> 3343 gui, backend = pt.find_gui_and_backend(gui, self.pylab_gui_select) 3344 3345 if gui != 'inline': ~\Anaconda3\lib\site-packages\IPython\core\pylabtools.py in find_gui_and_backend(gui, gui_select) 274 """ 275 --> 276 import matplotlib 277 278 if gui and gui != 'auto': ~\Anaconda3\lib\site-packages\matplotlib\__init__.py in <module> 125 # cbook must import matplotlib only within function 126 # definitions, so it is safe to import from it here. --> 127 from . import cbook 128 from matplotlib.cbook import ( 129 _backports, mplDeprecation, dedent, get_label, sanitize_sequence) ~\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py in <module> 33 from weakref import ref, WeakKeyDictionary 34 ---> 35 import numpy as np 36 37 import matplotlib ~\Anaconda3\lib\site-packages\numpy\__init__.py in <module> 197 198 # Pytest testing --> 199 from numpy.testing._private.pytesttester import PytestTester 200 test = PytestTester(__name__) 201 del PytestTester ModuleNotFoundError: No module named 'numpy.testing._private'
該当のソースコード
Python3
1%matplotlib inline 2import pandas as pd 3import numpy as np 4import matplotlib.pyplot as plt 5import seaborn as sns 6sns.set(rc={'figure.figsize' : (25,15)}) 7import plotly 8plotly.offline.init_notebook_mode(connected=True) 9import plotly.figure_factory as ff 10import cufflinks as cf 11 12import warnings 13warnings.filterwarnings('ignore')
試したこと
補足情報(FW/ツールのバージョンなど)
Windows8
python 3.6.6
numpy 1.14.3
matplotlib 2.2.2
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。