fix DIl load failed while importing pydantic_core:
This commit is contained in:
parent
ca6c6a022a
commit
1002c2368a
@ -12,7 +12,7 @@ lxml
|
||||
dbutils
|
||||
psutil
|
||||
pymem
|
||||
|
||||
pydantic==2.6.0
|
||||
fastapi
|
||||
uvicorn
|
||||
python-dotenv
|
@ -151,7 +151,7 @@ if package_path:
|
||||
require_path = os.path.join(os.path.dirname(current_path), "requirements.txt") # requirements.txt 路径
|
||||
with open(require_path, "r", encoding="utf-8") as f:
|
||||
hidden_imports = f.read().splitlines()
|
||||
hidden_imports = [i.replace('-', '_') for i in hidden_imports if
|
||||
hidden_imports = [i.replace('-', '_').split("=")[0] for i in hidden_imports if
|
||||
i and i not in ["setuptools", "wheel"]] # 去掉setuptools、wheel
|
||||
hidden_imports += ["pywxdump", "pywxdump.db","pywxdump.db.__init__.utils"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user