1.準備編譯環境
yum install gcc
yum install cpp
yum install gcc-c++
yum install ncurses
yum install ncurses-devel
yum install gd-devel php-gd
yum install zlib-devel
//以下可選
yum install freetype-devel freetype-demos freetype-utils
yum install libpng-devel libpng10 libpng10-devel
yum install libjpeg-devel
yum install imagemagick
yum install flex
yum install imagemagick-devel
如:tar zxvf python2.5.2.tgz.gz
3.編譯和安裝
./configure
make
make install
4.安裝easy_install工具
5.安裝ipython
1).安裝ipython需要的模組
easy_install readline
easy_install nose
easy_install pexpect
2).安裝ipython
easy_install ipython
python 原始碼安裝教程 原始碼安裝python3
裝好yum源和epel源 解壓安裝 root localhost a ls python 3.6.0.tgz root localhost a tar xf python 3.6.0.tgz c usr local src root localhost a cd usr local src root...
CentOS 7 9 從原始碼安裝PyTorch
系統自帶的4.8.5的gcc不滿足編譯要求,所以需要公升級一下。我直接從原始碼編譯安裝gcc 7.5.0 tar xzf gcc 7.5.0.tar.gz cd gcc 7.5.0 mkdir build cd build configure enable languages c,c disable...
Centos7上用原始碼安裝Nginx
推薦使用原始碼安裝nginx,如果用rpm安裝的話,在安裝後想新增外掛程式的話會比較頭疼 版本任意,推薦主線版本 先解決依賴問題 yum y install make zlib zlib devel gcc c libtool openssl openssl devel 然後進入資料夾編譯安裝建立使...