fix #342, #345: cannot import name 'packaging' from 'pkg_resources'

This commit is contained in:
josc146 2024-05-28 21:21:45 +08:00
parent 1b3aa629da
commit 6b4381ee77
3 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
import setuptools
if setuptools.__version__ >= "70.0.0":
raise ImportError("setuptools>=70.0.0 is not supported")
import multipart
import fitz
import safetensors

View File

@ -1,6 +1,7 @@
torch
torchvision
torchaudio
setuptools==69.5.1
rwkv==0.8.26
langchain==0.0.322
fastapi==0.109.1

View File

@ -1,6 +1,7 @@
torch
torchvision
torchaudio
setuptools==69.5.1
rwkv==0.8.26
langchain==0.0.322
fastapi==0.109.1