解决pip安装uwsgi报错generated with GCC compiler older than 10.0
一、具体报错
lto1: 致命错误:bytecode stream in file ‘/home/cmic/anaconda3/envs/torch1.9/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a’ generated with GCC compiler older than 10.0
编译中断。
lto-wrapper: 致命错误:gcc 以返回值 1 退出
编译中断。
/home/cmic/anaconda3/envs/torch1.9/compiler_compat/ld: error: lto-wrapper failed
collect2: 错误:ld 返回 1
*** error linking uWSGI ***
二、解决方法
conda install -c conda-forge uwsgi
conda install -c conda-forge libiconv
三、安装成功
uwsgi --version
2.0.18