Python - 更新pandas
我想更新pandas这个库,但在运行更新命令后出现了以下错误。我该怎么办呢?
sudo pip install --upgrade pandas
Downloading pandas-0.14.0.tar.gz (6.5MB): 6.5MB downloaded
Running setup.py egg_info for package pandas
Running from numpy source directory.
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
non-existing path in '/private/var/folders/3k/54tzj0597zg8wdtf4509g58m0000gn/T/easy_install-bUVakZ/numpy-1.8.1/numpy/distutils': 'site.cfg'
non-existing path in '/private/var/folders/3k/54tzj0597zg8wdtf4509g58m0000gn/T/easy_install-bUVakZ/numpy-1.8.1/numpy/lib': 'benchmarks'
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable f90
Could not locate executable f77
Could not locate executable xlf90
Could not locate executable xlf
Could not locate executable ifort
Could not locate executable ifc
Could not locate executable g77
Could not locate executable g95
Could not locate executable pgfortran
don't know how to compile Fortran code on platform 'posix'
1 个回答
2
看起来你可能是通过像Anaconda或Enthought这样的工具安装了Pandas?或者是其他一些已经编译好的软件包?你需要查看那个软件包管理工具是怎么说的。 我猜你是在Windows系统上,并且没有安装Fortran吧?