指定依赖版本

This commit is contained in:
dylan 2023-05-20 17:57:09 +08:00
parent 1a0d9442d7
commit a2f02f92df
1 changed files with 2 additions and 0 deletions

View File

@ -33,11 +33,13 @@ except:
os.system('pip3 install jieba &> /dev/null') os.system('pip3 install jieba &> /dev/null')
os.system('pip3 install zhon &> /dev/null') os.system('pip3 install zhon &> /dev/null')
os.system('pip3 install requests &> /dev/null') os.system('pip3 install requests &> /dev/null')
os.system('pip3 install urllib3==1.25.11 &> /dev/null')
import jieba import jieba
import jieba.analyse import jieba.analyse
#import yaml #import yaml
from lxml import etree from lxml import etree
import requests import requests
import urllib.parse
import jdspider import jdspider
# constants # constants
CONFIG_PATH = './config.yml' CONFIG_PATH = './config.yml'