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

  • Cloud Native Python
  • Manish Sethi
  • 158字
  • 2021-07-02 19:11:54

Using source code

You can download the source code from the GitHub repository and compile the software from the source, as follows:

  1. Before you begin, let's first install the dependencies of Git; execute the following commands as the root user to do so:
      $ apt-get update -y 
      $ apt-get install build-essential checkinstall libreadline-gplv2-
dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-
dev libc6-dev libbz2-dev -y
  1. Now, let's download Python (https://www.python.org) using the following command from Python's official website. You can also download the latest version in place, as specified:
      $ cd /usr/local
      $ wget https://www.python.org/ftp/python/3.4.6/Python-3.4.6.tgz  
  1. Now, let's extract the downloaded package with this command:
      $ tar xzf Python-3.4.6.tgz  
  1. Now we have to compile the source code. Use the following set of commands to do so:
      $ cd python-3.4.6
      $ sudo ./configure
      $ sudo make altinstall  
  1. The preceding commands will install Python on your system at /usr/local. Use the following command to check the Python version:
      $ python3 -V                                                                                                                                                                             
        Python 3.4.6
主站蜘蛛池模板: 宜阳县| 五峰| 香港| 克山县| 尚义县| 广宁县| 麻阳| 陵川县| 禹州市| 富宁县| 香河县| 阳江市| 望奎县| 七台河市| 怀集县| 金坛市| 惠州市| 衡南县| 仪陇县| 宾川县| 冕宁县| 襄樊市| 湖北省| 弋阳县| 开鲁县| 民乐县| 东平县| 沁源县| 墨竹工卡县| 达州市| 遵义县| 扬中市| 攀枝花市| 阳山县| 和林格尔县| 桂平市| 文水县| 沙坪坝区| 监利县| 城固县| 玉田县|