Centos配置Python3
Python
./configure prefix=/usr/local/python3.13 –enable-optimizations=no –with-openssl=/usr/local/openssl
make clean
make && make install
Setup
1 | _ssl _ssl.c \ |
已有python2版本冲突 别名设置
1 | vim /root/.bashrc |
openssl
./config –prefix=/usr/local/openssl –openssldir=/usr/local/openssl shared zlib
设置库搜索路径和头文件路径
1 | export LD_LIBRARY_PATH=/usr/local/openssl/lib:$LD_LIBRARY_PATH |
systemd deply
stock_monitor.service
1 | [Unit] |
run
1 | sudo systemctl daemon-reload |
参考链接
[纳米AI_centos-python3] https://bot.n.cn/chat/442bfb394ef74c42baadb09ea062eadc
[python安装] https://blog.csdn.net/woaiwowang/article/details/146924432
[SMTP_SSL报错] https://www.cnblogs.com/tuaisen/p/16471677.html
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Indifferent!
评论