python下载包 或 The following packages are not available from current channels:

意思是当前的conda中没有这个包(比如pkuseg)

 

1.可以将conda-forge源导入conda中

代码如下:

conda config --append channels conda-forge

conda config --add channels conda-forge

之后可以通过  conda install pkuseg  去添加相应的包

 

2.

通过pip下载

pip install pkuseg --index-url https://pypi.python.org/simple/

(不推荐,容易timeout)

 

3.清华大学镜像库

pip install pkuseg -i https://pypi.tuna.tsinghua.edu.cn/simple/

posted @ 2024-05-15 11:24  椰子灰  阅读(638)  评论(0)    收藏  举报