错误:pandas 0.23.3 has requirement python-dateutil>=2.5.0, but you'll have python-dateutil 1.5解决方法

Ubuntu18.04下安装Caffe-GPU时执行以下语句:

for req in $(cat requirements.txt); do pip install $req; done

出现了以下错误:

pandas 0.22.0 has requirement python-dateutil>=2, but you'll have python-dateutil 1.5 which is incompatible.
matplotlib 2.1.2 has requirement python-dateutil>=2.1, but you'll have python-dateutil 1.5 which is incompatible.
jupyter-client 5.2.2 has requirement python-dateutil>=2.1, but you'll have python-dateutil 1.5 which is incompatible.
bokeh 0.12.13 has requirement python-dateutil>=2.1, but you'll have python-dateutil 1.5 which is incompatible.
anaconda-client 1.6.9 has requirement python-dateutil>=2.6.1, but you'll have python-dateutil 1.5 which is incompatible.

已经是Python-dateutil的最新版本了,但依旧会出现上述错误,如图:
错误:pandas 0.23.3 has requirement python-dateutil>=2.5.0, but you'll have python-dateutil 1.5解决方法_第1张图片
解决方法:
在终端输入:

sudo vim requirements.txt

将该句

python-dateutil>=1.4,<2
改为:
python-dateutil    //不加版本号就是默认为最新版本

然后 ,保存并退出(命令:wq),在终端输入:

for req in $(cat requirements.txt); do pip install $req; done

错误:pandas 0.23.3 has requirement python-dateutil>=2.5.0, but you'll have python-dateutil 1.5解决方法_第2张图片
完美通过~!

你可能感兴趣的:(Caffe,Ubuntu18.04,Caffe,GPU,dateutil,python)