您的位置:首页 > 娱乐 > 八卦 > 内网建站教程_烟台本地信息发布网_百度公司地址_百度指数分析

内网建站教程_烟台本地信息发布网_百度公司地址_百度指数分析

2025/2/27 14:06:21 来源:https://blog.csdn.net/m0_66011019/article/details/142920455  浏览:    关键词:内网建站教程_烟台本地信息发布网_百度公司地址_百度指数分析
内网建站教程_烟台本地信息发布网_百度公司地址_百度指数分析

源码安装 Python 3.8

安装编译所需的依赖:首先安装一些编译 Python 所需的依赖包:

yum groupinstall "Development Tools"
yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel

下载 Python 3.8 源码

cd /usr/src
sudo wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz

解压源码包

sudo tar xzf Python-3.8.0.tgz
cd Python-3.8.0

编译和安装 Python 3.8

sudo ./configure --enable-optimizations
sudo make altinstall

验证安装

[root@host test]# python3.8 --version
Python 3.8.0

报错解决:

[root@host test]# python3 jiankongtest.py 
/usr/local/lib/python3.6/site-packages/paramiko/transport.py:32: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.from cryptography.hazmat.backends import default_backend* Serving Flask app 'jiankongtest' (lazy loading)* Environment: productionWARNING: This is a development server. Do not use it in a production deployment.Use a production WSGI server instead.* Debug mode: on* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)* Restarting with stat
/usr/local/lib/python3.6/site-packages/paramiko/transport.py:32: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.from cryptography.hazmat.backends import default_backend* Debugger is active!* Debugger PIN: 441-708-060

安装 pip

yum install python38-pip

 手动安装:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.8 get-pip.py

 安装 Flask 和 Paramiko

python3.8 -m pip install flask paramiko

 运行 Flask 项目

python3.8 jiankongtest.py

 

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com