aarch64服务器-安装python3.7

aarch64服务器-安装python3.7

2、下载安装包

https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz

3、配置安装环境

apt install libffi-dev            #否则将会提示No module named‘_ctypes’

4、编译安装python

tar xvf Python-3.7.0.tar 



cd Python-3.7.0



./configure --prefix=/usr/local/python3.7/ --enable-optimizations



make && make install


zipimport.ZipImportError: can’t decompress data; zlib not available in Linux
原因: 缺少zlib的相关工具包导致的
安装相关依赖包:
yum -y install zlib*
或sudo apt-get install zlib*

5、设置默认python

ln -s /usr/local/python3.7/bin/python3.7 /usr/bin/python



 



ln -s /usr/local/python3.7/bin/pip3.7 /usr/bin/pip

6、安装完成

aarch64服务器-安装python3.7_第1张图片


6、安装完成

[外链图片转存中...(img-I08Y1s5w-1663926607722)]



![image-20220923154221395](https://img-blog.csdnimg.cn/img_convert/ae0ef49f903a9ccf798852f8e61eedab.png)

你可能感兴趣的:(ARM64架构服务器,服务器,python,linux)