linux-gnu/libpython3.6m.a -lutil -lcrypt
lto1: fatal error: bytecode stream generated with LTO version 6.0 instead of the expected 4.2
compilation terminated.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/home/hayley/anaconda3/envs/envUntitled/compiler_compat/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
*** error linking uWSGI ***
- 原因:
当前linux系统gcc版本是gcc 7.4,尝试过降到gcc 5.5也报了同样的错
gcc版本太高,pip中uwsgi的包比较旧,不匹配
- 解决方案一:
安装低版本gcc
#查看当前系统安装所有版本的gcc
ls /usr/bin/gcc* -l
#如果gcc有5以下的版本