使用妙笔生花文章生成器需要安装什么环境和那些python库?

妙笔生花 帮助文档 2年前浏览量:342

妙笔生花利用python代码编写,使用妙笔生花文章生成器程序需要电脑或者服务器安装python环境。

python==3.6+

下载地址:https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe

python环境安装教程

 

transformers==4.6.0

安装方法:运行CMD,输入命令:pip install transformers==4.6.0 -i https://pypi.douban.com/simple/

 

sentencepiece==0.1.94

安装方法:运行CMD,输入命令:pip install sentencepiece==0.1.94 -i https://pypi.douban.com/simple/

 

pytorch==1.7.0

安装方法:运行CMD,输入命令:
pip install torch==1.7.0+cpu torchvision==0.8.2+cpu torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

 

jieba

安装方法:运行CMD,输入命令:pip install jieba -i https://pypi.douban.com/simple/

 

pandas

安装方法:运行CMD,输入命令:pip install pandas -i https://pypi.douban.com/simple/

 

sklearn

安装方法:运行CMD,输入命令:pip install sklearn  -i https://pypi.douban.com/simple/

安装sklearn完成后,运行程序还是提示没有安装sklearn,这是缺少依赖库的问题,运行pip install -U scikit-learn就可以

 

requests

安装方法:运行CMD,输入命令:pip install requests  -i https://pypi.douban.com/simple/

 

PySide2

安装方法:运行CMD,输入命令:pip install PySide2  -i https://pypi.douban.com/simple/

 

PyQt5

安装方法:运行CMD,输入命令:pip install PyQt5  -i https://pypi.douban.com/simple/