linux 安装 python3
生活随笔
收集整理的這篇文章主要介紹了
linux 安装 python3
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
linux 安裝 python3
軟件源
配置環境變量
ln -s /usr/local/python3/bin/python3 /usr/bin/python3 vim ~/.bash_profile PATH=$PATH:$HOME/bin:/usr/local/python3/bin source ~/.bash_profilepython在使用時,可能會使用ssl模塊。所以在編譯時,可以直接將ssl模塊編譯進去。
yum install openssl yum install openssl-devel -y cd Python-3.6.6 vi Modules/Setup #修改文件如下# Socket module helper for socket(2)_socket socketmodule.c# Socket module helper for SSL support; you must comment out the other# socket line above, and possibly edit the SSL variable:SSL=/usr/local/ssl_ssl _ssl.c \-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \-L$(SSL)/lib -lssl -lcrypto然后進行編譯安裝即可轉載于:https://blog.51cto.com/13649299878/2318101
總結
以上是生活随笔為你收集整理的linux 安装 python3的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 报表学习总结(一)——ASP.NET 水
- 下一篇: 电感是怎么储存能量的