Linux VPS出现 “-bash: python: command not found”错误的解决方法

说明:有时候换系统尝试运行Python程序时,服务器会返回-bash: python: command not found错误指令,说明系统上未安装Python,这里说下方法。

方法

1、安装
Ubuntu/Debian系统:

apt-get install python
或者
apt-get install python3

CentOS系统:

yum install python

2、检查

type -a python
which python
ls -l /usr/bin/python
ls -l /usr/bin/python*



给TA打赏
共{{data.count}}人
人已打赏
cj

Holer:又一款带Web管理界面的内网穿透工具

2020-2-27 3:18:10

cj

OpenVZ安装BBR新方法:LKL一键安装包(比UML简单)

2020-2-27 9:36:04

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索