[root@localhost ~]# python3 Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec prefix> Consider setting SPYTHONHOME to <prefix>[:<exec prefix>] Fatal Python error: Py_Initialize: Unable to get the locale encodin ModuleNotFoundiA-ror: No module named 'encodings' Current thread 0x80007/218eec9740 (most recent call first): Aborted
[root@localhost ~]# python3 Python 3.6.8 (default, Jan 21 2022, 15:07:01) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license"for more information. >>>
报错2
(1).报错内容
1 2 3
在CentOS7上安装完Python3后,运行python3时提示libpython3.7m.so.1.0不存在。我们可以看到以下错误信息 [root@carbon ~]# python3 python3: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory