python 安装
来源:互联网 发布:pca算法原理 编辑:程序博客网 时间:2024/06/04 18:25
1. 下载python
到 https://www.python.org/ftp/python 找到相应版本的python进行下载。或者到www.python.org官网直接下载。
2.上传安装文档到centos的/usr/local/src文件夹中
3. 解压
cd /usr/local/src
tar xzvf Python-3.6.0.tgz
4. 执行
./configure --prefix=/usr/local/python3.6
此处可能会报错:
configure: error: in `/usr/local/src/Python-3.6.0':
configure: error: no acceptable C compiler found in $PATH
需执行: yum -y install gcc
5. 执行
make -j4 && make install
此处可能会报错:
zipimport.ZipImportError: can't decompress data; zlib not available
需执行:yum -y install zlib*
6. 添加环境变量
修改 ~/.bash_profile文件
执行:vi ~/.bash_profile
PATH=$PATH:$HOME/bin:/usr/local/python3.6/bin
执行: . ~/.bash_profile
- 安装Python
- Python 安装
- python安装
- 安装Python
- python安装
- Python安装
- 安装Python
- python安装
- 安装Python
- 安装Python
- python安装
- python安装
- 安装Python
- Python安装
- python安装
- python安装
- python安装
- 安装Python
- Visitor模式
- iOS进阶之路
- RN知识体系
- Linux cpuinfo
- linux mysql备份 脚本执行成功 自动任务执行文件大小为0B
- python 安装
- cv::Mat到YUV420的转换
- 如何转载大神们的csdn博客
- CSS实现上下循环滚动效果
- numpy基本用法多维数组
- Java自动获取文件和文件流编码
- 将ip转为整数以及整数转为ip的java实现
- 证券基础------------------------->证券基础
- Binary Apple Tree URAL