大家好,欢迎来到IT知识分享网。
使用python校验dag脚本报错在这里插入代码片
python3 test.py
提示缺少模块或者直接报错的
重新安装python3,编译的时候看有没有依赖的模块未安装
类似下面这种
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _sqlite3 _ssl _ctypes
_tkinter bsddb185 bz2
dbm gdbm readline
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
直接安装需要的模块
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel gcc gcc-c++ libffi-devel
启动webserver报错
lzma
Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
需要重新安装lzma
yum install -y xz-devel
重新编译安装python
gunicorn
FileNotFoundError: [Errno 2] No such file or directory: 'gunicorn'
将gunicorn的路径写到path
export PATH=${
PATH}:/home/python3.9.6/bin
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/16172.html