0
なぜピップショーはnumpyバージョン1.13.1を持っているのですか? 1.8.0rc1なぜピップショーは私がnumpyバージョン1.13.1を持っていると伝えているのですが、パンダスは私がnumpyバージョンを持っていると思っています。
パンダをインポートする際に次のエラーが発生します。誰かが私にこれをどのように修正できるか教えてもらえますか?
インポートパンダ
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/pandas/__init__.py", line 23, in <module> from pandas.compat.numpy import * File "/Library/Python/2.7/site-packages/pandas/compat/numpy/__init__.py", line 24, in <module> 'this pandas version'.format(_np_version)) ImportError: this version of pandas is incompatible with numpy < 1.9.0 your numpy version is 1.8.0rc1. Please upgrade numpy to >= 1.9.0 to use this pandas version
これらの私のマシンでnumpyのの詳細
pip show numpy Name: numpy Version: 1.13.3 Summary: NumPy: array processing for numbers, strings, records, and objects. Home-page: http://www.numpy.org Author: NumPy Developers Author-email: [email protected] License: BSD Location: /Library/Python/2.7/site-packages
これらは
Name: pandas Version: 0.21.1 Summary: Powerful data structures for data analysis, time series,and statistics Home-page: http://pandas.pydata.org Author: The PyData Development Team Author-email: [email protected] License: BSD Location: /Library/Python/2.7/site-packages Requires: pytz, python-dateutil, numpy
- 私のマシン上のパンダの詳細されています
私はリンク解除と再リンクnumpyのを試してみました
pip check pandas No broken requirements found.
任意の依存関係の問題がある場合、私はパンダをチェックして
sudo pip uninstall numpy sudo pip install numpy
をnumpyの再インストール&をアンインストールして試してみました
brew unlink numpy brew link numpy Linking /usr/local/Cellar/numpy/1.13.3... Error: Could not symlink bin/f2py Target /usr/local/bin/f2py already exists. You may want to remove it: rm '/usr/local/bin/f2py' To force the link and overwrite all conflicting files: brew link --overwrite numpy To list all files that would be deleted: brew link --overwrite --dry-run numpy
あなたの質問は何を入力するのですか?これまでに投稿されたのは、いくつかのエラー情報です。 – gunr2171
あなたの質問が何であるかは不明です。あなたのnumpyを更新またはアップグレードする必要があるようです。パスの問題があるかもしれません。 – ShpielMeister
私は彼の質問が「なぜピップショーは私にnumpyバージョン1.13.1があると言っているのですが、パンダは私がnumpyバージョン1.8.0rc1を持っていると思います」と言っています。 –