linux centos 安装python3.7报错会在load avg: 0.63 [307/416] test_socket卡住 解决办法
在安装python3.7过程中,一般会很顺利的安装完成。
但是今天在安装一台虚拟机的时候报错了。
#环境检查命令 ./configure --prefix=/usr/local/python376 --enable-optimizations
下面是错误信息,准确的说不应该叫错误:
python -m test.regrtest --pgo||true .... module.gcda:Invocation mismatch - some data files may have been removed0:06:52 load avg: 1.20 [ 80/416] test_configparser -- test_concurrent_futures passed in 3 min 4 sec 0:06:53 load avg: 1.19 [ 81/416] test_contains 0:06:54 load avg: 1.19 [ 82/416] test_context 0:06:57 load avg: 1.19 [ 83/416] test_contextlib 0:06:58 load avg: 1.19 [ 84/416] test_contextlib_async Task was destroyed but it is pending! task: <Task pending coro=<<async_generator_athrow without __name__>()>> Task was destroyed but it is pending! task: <Task pending coro=<<async_generator_athrow without __name__>()>> 0:06:58 load avg: 1.17 [ 85/416] test_copy 0:06:59 load avg: 1.17 [ 86/416] test_copyreg .... load avg: 0.63 [307/416] test_socket #最后会卡在这里
为什么会这样子,暂时没有找到,如果哪位大神知道 啥原因,希望能在留言区指教一下。
虽然不知道为什么会出现这种情况,但是解决办法是有的。
解决办法: 检查环境的时候去掉 --enable-optimizations 这个参数,但是它会提示你用这个参数优化。
会提示这个 If you want a release build with all stable optimizations active (PGO, etc), please run ./configure --enable-optimizations
这个时候不用管它直接 make && make install
但是安装好后却提示不能使用ssl 下面这个警告
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
补充:
后来经过查找资料发现了这个问题的解决办法
彻底解决卡住的问题
linux centos 安装python3.7报错会在load avg: 0.63 [307/416] test_socket卡住 解决办法,并且无法使用ssl模块
留言(0)