#### kcweb的环境要求如下:
python3或更高
#### 安装
通过运行以下python文件进行安装
```
import os,shutil,requests,zipfile
def unzip_file(dst, src,all=True):
"解压"
if all:
zf = zipfile.ZipFile(dst)
zf.extractall(src)
zf.close()
else:
zip_ref=zipfile.ZipFile(dst)
for item in zip_ref.infolist():
zip_ref.extract(item, src)
zip_ref.close()
if os.name == 'nt':
pips='pip'
python='python'
elif os.name == 'posix':
pips='pip3'
python='python3'
else:
raise Exception('不支持当前操作系统')
os.system(pips+' install Spire.PDF==10.12.1 -i https://mirrors.aliyun.com/pypi/simple/')
os.system(pips+' install Spire.XLS==14.9.3 -i https://mirrors.aliyun.com/pypi/simple/')
os.system(pips+' install spire.Doc==12.6.0 -i https://mirrors.aliyun.com/pypi/simple/')
os.system(pips+' uninstall kcweb -y')
response=requests.get("https://gitee.com/open_source_official_website/kcweb/raw/develop/kcweb.zip")
f=open('kcweb.zip',"wb")
f.write(response.content)
f.close()
unzip_file('kcweb.zip','')
os.remove('kcweb.zip')
os.system(python+" setup.py sdist install")
try:
shutil.rmtree('__pycache__')
except:pass
shutil.rmtree('build')
shutil.rmtree('dist')
shutil.rmtree('kcweb')
shutil.rmtree('kcweb.egg-info')
os.remove('setup.py')
```
kcweb官方开发手册
开发版
开发版
6.4.28
6.4.21
6.4.17
6.4.15
6.4.9
6.4.8
6.4.4
6.2
6.1
5.330
5.328
登录