赞
踩
anaconda promt 命令框
国内常用镜像源
在base中创建需要的环境:
ERROR: Failed building wheel for tokenizers
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
conda install -c huggingface transformers # 对于python 3.9.13版本
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ transformers==3.4.0 #可能出错
from transformers import pipeline
print(pipeline('sentiment-analysis')('we love you'))
# 会有一个下载操作
Numpy
matpolotlib
接着安装sklearn,这里需要注意的是在Anaconda中sklearn叫做scikit-learn,并且在安装scikit-learn前还需要安装其他一些依赖,并且最好是按顺序下载
conda install numpy
conda install pandas
conda install scipy
conda install matplotlib
conda install scikit-learn==0.20.0
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。