Python-3.8.3 未安装在 Oracle Linux Server 7.3 中?

问题描述

wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz

已解压 Python-3.8.3.tgz,解压后,文件夹中没有 bin 文件夹

已从工作的 Oracle Linux Server 7.6 服务器复制解压缩的 Python3.8.3 并运行 python3 或 python8.3,但说找不到命令

Error Screen shot

解决方法

不确定你把解压后的python目录放在哪里, 但是除非您添加该目录在您的路径中,否则您需要从当前目录中像这样运行它

./python3
# or
./python3.8

或者将解压后的目录添加到路径中。

# for current session only
export PATH=$PATH:/your/unzipped/python/dir
# to add permanently
echo 'export PATH=$PATH:/your/unzipped/python/dir' >> ~/.bashrc
# or ~/.bash_profile

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...