![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
centos
M-Power
这个作者很懒,什么都没留下…
展开
-
shell脚本中获取(可执行文件)Python脚本的返回值
Python代码(文件名 pyfile.py):import sysprint("ok")sys.exit(1)Shell脚本:python3 pyfile.pyecho $?执行此shell脚本,得到的返回值:将Python文件通过pyinstaller转化成可执行的二进制文件:sudo pyinstaller -F pyfile.py可以得到python的可执行二进制文件pyfile。将shell脚本修改为如下:./pyfileecho $?再执行此shell脚本原创 2020-12-13 16:50:42 · 1766 阅读 · 0 评论 -
OSError: Python library not found: libpython3.6mu.so.1.0...的解决办法
出现OSError: Python library not found: libpython3.6mu.so.1.0, libpython3.6m.so.1.0, libpython3.6.so.1.0, libpython3.6m.so的解决办法解决办法:yum install python3-devel安装完成后在执行,OK~原创 2020-12-02 16:00:43 · 3061 阅读 · 2 评论