简体   繁体   English

无法在Linux上安装Python3

[英]Cant install Python3 on Linux

For AWS CLI i need to install Python on my Linux Server. 对于AWS CLI,我需要在Linux服务器上安装Python。

After i do the following: 在我执行以下操作之后:

wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
tar xf Python-3.6.4.tgz
cd Python-3.6.4
./configure

I get a lot of the same errors 我遇到很多相同的错误

./configure.lineo: line 472: expr: command not found

Some can help me to find a solution? 有些可以帮助我找到解决方案?

I also tried diffrent Version of Python2 and Python 3, but none worked and gave me the same error. 我还尝试了不同版本的Python2和Python 3,但没有一个起作用,并给了我同样的错误。

expr is mostly always present in /usr/bin... There could be a problem with the PATH environment variable. expr通常总是存在于/ usr / bin中PATH环境变量可能有问题。 This post may be helpful: expr command not found? 这篇文章可能会有所帮助: 找不到expr命令吗? Why is expr not found but everything else is? 为什么找不到expr,但其他所有东西都没有?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM