官术网_书友最值得收藏!

Installing Python on Linux

There are many different distributions of Linux available. The instructions to install Python might be different, depending on your specific Linux distribution. In general, you should first check to see if Python is already installed on your system in the Terminal:

$ python --version
$ pip --version

If Python or pip is not installed, or a different version is installed, install them with your Linux distribution's package manager:

  • For Debian derivatives such as Ubuntu, use apt:
$ sudo apt-get install python3 python3-pip
  • For Red Hat derivatives such as Fedora, use yum:
$ sudo yum install python python-pip
  • For SUSE derivatives, use zypper:
$ sudo zypper install python3 python3-pip
主站蜘蛛池模板: 缙云县| 成都市| 康定县| 淳化县| 红桥区| 江孜县| 中卫市| 苗栗市| 马公市| 四平市| 台湾省| 兴宁市| 巴彦淖尔市| 汨罗市| 印江| 阜平县| 大竹县| 屯留县| 漳平市| 自治县| 绿春县| 永胜县| 呈贡县| 达州市| 洪江市| 宜川县| 神木县| 临澧县| 榆树市| 邢台市| 客服| 司法| 延津县| 静海县| 南丹县| 福海县| 永平县| 芜湖市| 拉萨市| 平武县| 武鸣县|