ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### 一、使用yum源安装python3安装的依赖包 ``` yum install -y lrzsz bash-completion unzip wget vim yum install -y gcc gcc-c++ nss curl zlib-devel bash-completion yum install -y openssl-devel libjpeg-turbo-devel freetype-devel ``` ### 二、编译安装python #### 1、上传压缩包并解压 ``` unzip Python.zip cd Python tar -xf Python-3.6.1.tar.xz cd Python-3.6.1 ``` ####2、创建新的安装目录 `mkdir /usr/local/python3.6` ####3、编译安装 ``` ./configure --prefix=/usr/local/python3.6 make && make install ``` ####4、创建软连接(注意源文件位置) ``` ln -s /usr/local/python3.6/bin/python3 /usr/bin/python3 ln -s /usr/local/python3.6/bin/pip3 /usr/bin/pip3 ``` ####5、离线安装Pillow、ffmpy3 ``` cd ../ffmpy3_Dependency_package/ pip3 install Pillow-5.1.0.tar.gz pip3 install ffmpy3-0.2.3.tar.gz ```