|
软件版本:Python3.7.1
操作系统:Centos 7
安装时报错如下:
gcc -pthread -shared -Wl,--no-as-needed -o libpython3.so -Wl,-hlibpython3.so libpython3.7m.so
gcc -pthread -Xlinker -export-dynamic -o python Programs/python.o -L. -lpython3.7m -lpthread -ldl -lutil -lm
LD_LIBRARY_PATH=/app/soft/Python-3.7.1::/usr/local/apr/lib ./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Could not import runpy module
Traceback (most recent call last):
File "/app/soft/Python-3.7.1/Lib/runpy.py", line 15, in <module>
import importlib.util
File "/app/soft/Python-3.7.1/Lib/importlib/util.py", line 14, in <module>
from contextlib import contextmanager
File "/app/soft/Python-3.7.1/Lib/contextlib.py", line 4, in <module>
import _collecti**_abc
SystemError: <built-in function compile> returned NULL without setting an error
generate-posix-vars failed
make[1]: *** [pybuilddir.txt] Error 1
make[1]: Leaving directory `/app/soft/Python-3.7.1'
make: *** [profile-opt] Error 2
|
|