网络营销电子商务研究中心  
USA Web Hosting Direct
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > Python
User Name
Password
 
FAQ Members List Calendar 域名注册 PHP Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1   IP: 192.240.127.78
Old 2018-01-13, 05:53 PM
Kaliyah Kaliyah is offline
初级会员
 
Join Date: 2012-07-07
Posts: 1
Kaliyah 现在声名狼藉
Default How to install Python3 on CentOS

Build and Install Python3 from the Source
You can always build python3 from its source manually. Since you can choose the version of python3 to install, this is the surest way to meet Python dependency requirement.

Here is how you can build and install python3 from the source.

First, install minimum necessary tools:
Code:
$ sudo yum install yum-utils
Then using yum-builddep, set up a necessary build environment for python3 and install missing dependencies. The following command will automatically take care of that.
Code:
$ sudo yum-builddep python
Now download the latest python3 (e.g., python 3.5) from https://www.python.org/ftp/python/
Code:
$ curl -O https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
Finally, build and install python3 as follows. The default installation directory is /usr/local. If you want to change this to some other directory, pass "--prefix=/alternative/path" parameter to configure before running make.
Code:
$ tar xf Python-3.5.0.tgz
$ cd Python-3.5.0
$ ./configure
$ make
$ sudo make install
This will install python3, pip3, setuptools as well as python3 libraries on your CentOS system.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php源代码安装常见错误与解决办法分享 Adamstown 服务器环境搭建 0 2016-05-29 11:28 PM
PHP编译configure时常见错误 Iosco PHP 0 2016-05-23 09:59 AM
CentOS编译PHP5过程中常见错误信息的解决方法 Iron Mountain PHP 0 2016-05-23 09:58 AM
CentOs 编译php 遇到的一些问题 Islesboro PHP 0 2016-05-23 09:57 AM
Centos 安装笔记 Kaelyn Linux 0 2015-07-02 01:00 PM

Prescription-glasses.com offers prescription glasses online at discount prices.
所有时间均为 +8. 现在的时间是 09:34 PM, Free Patent & Patent Ideas