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

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
主站蜘蛛池模板: 长春市| 大方县| 浮梁县| 老河口市| 夏河县| 芜湖县| 苍山县| 来安县| 赤壁市| 沂源县| 平阴县| 肥城市| 无锡市| 利辛县| 陵川县| 巴楚县| 宜丰县| 和田市| 当涂县| 贵阳市| 义乌市| 华宁县| 沛县| 贞丰县| 宁阳县| 临夏县| 浮梁县| 苏尼特右旗| 宜兰县| 兴仁县| 钟山县| 汨罗市| 万全县| 启东市| 许昌县| 海淀区| 六安市| 中牟县| 新泰市| 乐安县| 泸溪县|