python依赖库版本问题_ubuntu下python安装pandas和numpy等依赖库版本不兼容的问题RuntimeWarning: numpy.dtype size changed...

习惯了linux下用pip install numpy及pip install pandas命令了。折腾了好久了。

上来先在python3中pip3 install numpy装了numpy,然后再pip3 install pandas就卡住不动了,或者报什么错,然后把numpy卸载了,继续装pandas还是卡住了,好像是找不到相应版本的依赖库。

那就转装python2.7吧,继续pip install pandas,装好了,在pycharm中和命令行交互中导入运行时分别报如下错误:

pycharm下的错误:

RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88……

命令行下错误:

ImportError: C extension: No module named missing not built. If you want to import pandas from the source directory, you may need to run 'python

3. 那就下载源码、whl文件试试吧,分别用python2和python3安装,python2可以编源码并安装,只是问题一样,安装whl则报版本不能安装;python3一样的卡住、安装whl不能装。1. 首先想到的当然是百度或谷歌一下,几乎没搜到解决办法。当然我也猜到了是版本不兼容了,所以卸载了numpy、pandas等库,直接pip install pandas,因为发现会自动安装numpy等依赖库,装好了发现还是报一样的问题,继续全删了按照网上的教程来一个

你可能感兴趣的:(python依赖库版本问题)