执行pytorch出现:
File "/opt/AN/lib/python3.7/site-packages/numpy/lib/format.py", line 739, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False
原因是numpy版本太高了,目前都安装到18.1了,降到16.2就不会错
[root@VM_0_9_centos AI-poet-master]# pip install numpy==1.16.2
Looking in indexes: http://mirrors.tencentyun.com/pypi/simple
Collecting numpy==1.16.2
Downloading http://mirrors.tencentyun.com/pypi/packages/91/e7/6c780e612d245cca62bc3ba8e263038f7c144a96a54f877f3714a0e8427e/numpy-1.16.2-cp37-cp37m-manylinux1_x86_64.whl (17.3 MB)
|████████████████████████████████| 17.3 MB 3.5 MB/s
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.18.1
Uninstalling numpy-1.18.1:
Successfully uninstalled numpy-1.18.1
Successfully installed numpy-1.16.2