ubuntu18安装paddle的cpu版的时候在import paddle,出现错误
WARNING: AVX is not support on your machine. Hence, no_avx core will be imported, It has much worse preformance than avx core.
Error: AVX is not support on your machine, but you have installed paddlepaddle without no_avx core, you should reinstall paddlepaddle by ‘python -m pip install --force-reinstall paddlepaddle-gpu[==version] -f https://paddlepaddle.org.cn/whl/mkl/stable/noavx.html or https://paddlepaddle.org.cn/whl/openblas/stable/noavx.html
Traceback (most recent call last):
File "
File "/home/kk/anaconda3/envs/ocr38/lib/python3.8/site-packages/paddle/init.py", line 26, in
from .fluid import monkey_patch_variable
File "/home/kk/anaconda3/envs/ocr38/lib/python3.8/site-packages/paddle/fluid/init.py", line 36, in
from . import framework
File "/home/kk/anaconda3/envs/ocr38/lib/python3.8/site-packages/paddle/fluid/framework.py", line 37, in
from . import core
File "/home/kk/anaconda3/envs/ocr38/lib/python3.8/site-packages/paddle/fluid/core.py", line 369, in
raise e
File "/home/kk/anaconda3/envs/ocr38/lib/python3.8/site-packages/paddle/fluid/core.py", line 316, in
from .core_noavx import *
ModuleNotFoundError: No module named ‘paddle.fluid.core_noavx‘
在paddle的2.1.3版本一直降低下来,在2.0.0时候是可以使用的。
python -m pip install paddlepaddle==2.0 -i https://pypi.mirrors.ustc.edu.cn/simple/
百度能不能稳定一点麻
原文:https://www.cnblogs.com/gisempire/p/15345991.html