问题1 python3 ./dingding.py 13788889999 "Zabbix告警故障" "Zabbix告警信息"
报错
Traceback (most recent call last):
File "/usr/share/zabbix/./dingding.py", line 4, in <module>
import requests,json,sys,os,datetime
ModuleNotFoundError: No module named 'requests'
alpine安装包的方式 : apk add
apk add py3-pip py3-setuptools python3 python3-dev
pip3 install requests
centos安装包的方式:yum install
yum -y install python3 python3-devel python-pip
pip3 install requests
错误2 与以上问题无关
pip3 install pyinstaller
ERROR: Could not build wheels for pyinstaller which use PEP 517 and cannot be installed directly
pip3 install pyinstaller==3.6