python源码编译安装 gb18030_源代码编译安装Python3.5.2
由于沒有找到Python3.5的rpm安裝包,因此進(jìn)行源代碼編譯安裝
1、下載Python3.5.2
[root@seastar ~]# cd /usr/local/src
[root@seastar src]#wget wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
2、查看安裝步驟
[root@seastar src]# tar -zxvf Python-3.5.2.tgz
[root@seastar src]# cd Python-3.5.2
[root@seastar Python3.5.2]# cat README | more
On Unix, Linux, BSD, OSX, and Cygwin:
./configure
make
make test
sudo make install
3、安裝
[root@seastar src]# ./configure --prerix=/usr/local/python3
...
3、編譯
[root@seastar src]# make
...
Python build successfully!
The necessary bits to build these optional modules is not found:
_bz2 _curses _curses_panel
_dbm _gdbm _lzma
_sqlite3 _ssl _tkinter
readlime zlib
安裝這些可選的開發(fā)庫(這里忽略了lzma和tkinter)
[root@seastar src]# yum install -y bzip2-devel ncurses-devel gdbm-devel openssl-devel readline-devel zlib-devel sqlite-devel
3、安裝
[root@seastar src]# make install
...
4、至此,安裝成功
總結(jié)
以上是生活随笔為你收集整理的python源码编译安装 gb18030_源代码编译安装Python3.5.2的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql查看binlog日志内容
- 下一篇: 使用 NodeJS+Express+My