2017-12-26 17 views
0

なぜピップショーはnumpyバージョン1.13.1を持っているのですか? 1.8.0rc1なぜピップショーは私がnumpyバージョン1.13.1を持っていると伝えているのですが、パンダスは私がnumpyバージョンを持っていると思っています。

パンダをインポートする際に次のエラーが発生します。誰かが私にこれをどのように修正できるか教えてもらえますか?

  1. インポートパンダ

    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 
    
  2. これらの私のマシンで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 
    
  3. これらは

    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 
    
  4. 私のマシン上のパンダの詳細されています

    私はリンク解除と再リンクnumpyのを試してみました

    pip check pandas   
    No broken requirements found. 
    
  5. 任意の依存関係の問題がある場合、私はパンダをチェックして

    sudo pip uninstall numpy 
    sudo pip install numpy 
    
  6. を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 
    
+0

あなたの質問は何を入力するのですか?これまでに投稿されたのは、いくつかのエラー情報です。 – gunr2171

+0

あなたの質問が何であるかは不明です。あなたのnumpyを更新またはアップグレードする必要があるようです。パスの問題があるかもしれません。 – ShpielMeister

+0

私は彼の質問が「なぜピップショーは私にnumpyバージョン1.13.1があると言っているのですが、パンダは私がnumpyバージョン1.8.0rc1を持っていると思います」と言っています。 –

答えて

0
Python REPL(私はipythonを使用しています)の

In [98]: import numpy as np 

In [99]: np.__version__ 
Out[99]: '1.13.3' 

In [100]: np.__file__ 
Out[100]: '/Users//anaconda/lib/python2.7/site-packages/numpy/__init__.pyc' 

numpyのはどこから来ている、これはあなたが表示されます、そしてパンダのためのターミナルウィンドウでこの

In [103]: import pandas as pd 

In [104]: pd.__version__ 
Out[104]: u'0.20.3' 

In [105]: pd.__file__ 
Out[105]: '/Users//anaconda/lib/python2.7/site-packages/pandas/__init__.pyc' 

echo $PATH

関連する問題