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

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
主站蜘蛛池模板: 昌平区| 洛宁县| 成安县| 吴川市| 建阳市| 嵊州市| 突泉县| 彰化县| 昌都县| 武山县| 石屏县| 周口市| 保亭| 华宁县| 长垣县| 扬中市| 中宁县| 南投市| 乳山市| 股票| 永修县| 灵寿县| 黄平县| 连江县| 平顶山市| 长宁县| 呼图壁县| 集安市| 成武县| 龙州县| 临沧市| 庆阳市| 沅江市| 岳池县| 泸州市| 澄江县| 电白县| 永福县| 长汀县| 太谷县| 瓦房店市|