开发者社区> 问答> 正文

centos6.6下安装python3.8.1后报错

我的系统版本是:[root@localhost ~]# rpm -q centos-release centos-release-6-6.el6.centos.12.2.x86_64 按照标准步骤./configure   make   make install 安装完python3.8.1后,调用python命令,显示以下问题,请大神帮我看看怎么回事? [root@localhost ~]# python Could not find platform independent libraries Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to [:<exec_prefix>] Python path configuration: PYTHONHOME = (not set) PYTHONPATH = (not set) program name = 'python' isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = '/usr/bin/python' sys.base_prefix = '/usr/local' sys.base_exec_prefix = '/usr/local' sys.executable = '/usr/bin/python' sys.prefix = '/usr/local' sys.exec_prefix = '/usr/local' sys.path = [ '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0x00007f86af83e700 (most recent call first):

展开
收起
海边一只船 2020-06-01 14:59:10 1356 0
2 条回答
写回答
取消 提交回答
  • 坚持这件事孤独又漫长。

    报错的内容都粘贴乱了,看报错大概率是你的系统没有Python3.8所需要的依赖库,根据报错可以安装即可。

    2022-11-30 15:56:29
    赞同 展开评论 打赏
  • 安装python环境为什么不用miniconda,想装哪个版本就哪个版本,想升级就升级

    2020-06-01 14:59:19
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载