转载自: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