1.使用进行安装:
命令:pip install jieba -i 镜像
比如使用清华大学的景象进行,则命令则为:
pip install jieba -i https://pypi.tuna.tsinghua.edu.cn/simple/
可以考虑以下几种镜像:
阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学
https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban)
http://pypi.douban.com/simple/ 清华大学
https://pypi.tuna.tsinghua.edu.cn/simple/
首先进入python的安装目录,我这里用的Anaconda,随便进入一个目录后进行安装,anaconda回自动对安装的库等进行管理。我这里进入的目录是:F:\Anaconda3
使用镜像安装过程很快。
安装过程出现警告(WARNING):
阅读警告:
WARNING: You are using pip version 20.0.2; however, version
20.1.1 is available. You should consider upgrading via the ‘f:\anaconda3\python.exe -m pip install --upgrade pip’ command.
这个警告的意思是说:我当前使用的pip版本是20.0.2,但现在新的版本20.1.1可以获得,如果我想要更新的话,可以使用命令:pip install --upgrade pip
jiaba安装成功!让我们看看anaconda把jieba库放在哪里了吧!
在anaconda目录中,搜索jieba:
jiba被放在了lib\site-packages目录下。
也可使用 pip list 命令进行查看:
F:\Anaconda3>pip list
Package Version
---------------------------------- -----------
absl-py 0.9.0
alabaster 0.7.9
anaconda-clean 1.0
anaconda-client 1.5.1
anaconda-navigator 1.3.1
argcomplete 1.0.0
astor 0.8.1
astroid 1.4.7
astropy 1.2.1
Babel 2.3.4
backports.shutil-get-terminal-size 1.0.0
beautifulsoup4 4.5.1
bitarray 0.8.1
blaze 0.10.1
bokeh 0.12.2
boto 2.42.0
Bottleneck 1.1.0
cachetools 4.0.0
certifi 2019.11.28
cffi 1.7.0
chardet 3.0.4
chest 0.2.3
click 6.6
cloudpickle 0.2.1
clyent 1.2.2
colorama 0.3.7
comtypes 1.1.2
conda 4.5.11
conda-build 2.0.2
configobj 5.0.6
contextlib2 0.5.3
cryptography 1.5
cycler 0.10.0
Cython 0.24.1
cytoolz 0.8.0
dask 0.11.0
datashape 0.5.2
decorator 4.0.10
dill 0.2.5
docutils 0.12
dynd c328ab7
et-xmlfile 1.0.1
fastcache 1.0.2
filelock 2.0.6
Flask 0.11.1
Flask-Cors 2.1.2
gast 0.2.2
gevent 1.1.2
google-auth 1.10.0
google-auth-oauthlib 0.4.1
google-pasta 0.1.8
greenlet 0.4.10
grpcio 1.26.0
h5py 2.10.0
HeapDict 1.0.0
idna 2.8
imagesize 0.7.1
ipykernel 4.5.0
ipython 5.1.0
ipython-genutils 0.1.0
ipywidgets 5.2.2
itsdangerous 0.24
jdcal 1.2
jedi 0.9.0
jieba 0.42.1
Jinja2 2.8
jsonschema 2.5.1
jupyter 1.0.0
jupyter-client 4.4.0
jupyter-console 5.0.0
jupyter-core 4.2.0
Keras 2.3.1
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.0
lazy-object-proxy 1.2.1
llvmlite 0.13.0
locket 0.2.0
lxml 3.6.4
Markdown 3.1.1
MarkupSafe 0.23
matplotlib 1.5.3
menuinst 1.4.1
mistune 0.7.3
mkl-fft 1.0.6
mkl-random 1.0.1
mpmath 0.19
multipledispatch 0.4.8
nb-anacondacloud 1.2.0
nb-conda 2.0.0
nb-conda-kernels 2.0.0
nbconvert 4.2.0
nbformat 4.1.0
nbpresent 3.0.2
networkx 1.11
nltk 3.2.1
nose 1.3.7
notebook 4.2.3
numba 0.28.1
numexpr 2.6.1
numpy 1.18.1
oauthlib 3.1.0
odo 0.5.0
opencv-contrib-python 3.4.2.16
opencv-python 3.4.2.16
openpyxl 2.3.2
opt-einsum 3.1.0
pandas 0.18.1
partd 0.3.6
path.py 0.0.0
pathlib2 2.1.0
patsy 0.4.1
pep8 1.7.0
pickleshare 0.7.4
Pillow 3.3.1
pip 20.0.2
pkginfo 1.3.2
ply 3.9
prompt-toolkit 1.0.3
protobuf 3.11.2
psutil 4.3.1
py 1.4.31
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycosat 0.6.3
pycparser 2.14
pycrypto 2.6.1
pycurl 7.43.0
pyflakes 1.3.0
Pygments 2.1.3
pylint 1.5.4
pyOpenSSL 16.2.0
pyparsing 2.1.4
pytest 2.9.2
python-dateutil 2.5.3
pytz 2016.6.1
pywin32 220
PyYAML 3.12
pyzmq 15.4.0
QtAwesome 0.3.3
qtconsole 4.2.1
QtPy 1.1.2
requests 2.22.0
requests-oauthlib 1.3.0
rope-py3k 0.9.4.post1
rsa 4.0
ruamel-yaml -VERSION
scikit-image 0.12.3
scikit-learn 0.17.1
scipy 1.4.1
setuptools 45.0.0
simplegeneric 0.8.1
singledispatch 3.4.0.3
six 1.13.0
snowballstemmer 1.2.1
sockjs-tornado 1.0.3
sphinx 1.4.6
spyder 3.0.0
SQLAlchemy 1.0.13
statsmodels 0.6.1
sympy 1.0
tables 3.2.2
TBB 0.1
tensorboard 2.1.0
tensorflow 2.1.0
tensorflow-estimator 2.1.0
termcolor 1.1.0
toolz 0.8.0
tornado 4.4.1
traitlets 4.3.0
unicodecsv 0.14.1
urllib3 1.25.7
wcwidth 0.1.7
Werkzeug 0.16.0
wheel 0.33.6
widgetsnbextension 1.2.6
win-unicode-console 0.5
wrapt 1.11.2
xlrd 1.0.0
XlsxWriter 0.9.3
xlwings 0.10.0
xlwt 1.1.2
可以看到安装了jieba !
如果帮助到了您,就来个三连吧——点赞收藏接关注,Oh Yeah!