ubuntu conda install报错,Package missing in current linux-64 channels: - jieba

转载自:https://segmentfault.com/q/1010000005979788?_ea=972252

python版本打jieba包,而Anaconda带的包里面不包括。当使用conda install jieba时,报错如下:

Fetching package metadata ......
WARNING: The remote server could not find the noarch directory for the
requested channel with url: https://pypi.tuna.tsinghua.edu.cn/simple

It is possible you have given conda an invalid channel. Please double-check
your conda configuration using `conda config --show`.

If the requested url is in fact a valid conda channel, please request that the
channel administrator create `noarch/repodata.json` and associated
`noarch/repodata.json.bz2` files, even if `noarch/repodata.json` is empty.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json
.......

PackageNotFoundError: Package missing in current linux-64 channels:
  - jieba

使用命令binstar search -t conda jieba可以搜索可以用conda安装当jieba库

可以查看:

Using Anaconda API: https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
     Name                      |  Version | Package Types   | Platforms      
     ------------------------- |   ------ | --------------- | ---------------
     auto/jieba                |     0.32 | conda           | linux-64, linux-32
                                          : http://github.com/fxsjy
     conda-forge/jieba         |     0.39 | conda           | linux-64, win-32, osx-64, win-64
                                          : Chinese Words Segementation Utilities
     creditx/jieba             |     0.38 | conda           | linux-64       
     hargup/jieba              |          | conda           | linux-64       
                                          : Chinese Words Segementation Utilities
     iilab/jieba               |   0.36.2 | conda           | linux-64, osx-64
                                          : Chinese Words Segementation Utilities
     iilab/jieba3k             |   0.35.1 | conda           | linux-64, osx-64
                                          : Chinese Words Segementation Utilities
     jiangxiluning/jieba       |   0.36.2 | conda           | linux-64, osx-64, win-64
                                          : Chinese Words Segementation Utilities
     moustik/jieba             |     0.38 | conda           | linux-64       
Found 8 packages

可以选择最后一个安装,
conda install moustik/jieba

或者使用pip install jieba





评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值