Home  >  Article  >  Backend Development  >  How to install jieba library in python?

How to install jieba library in python?

青灯夜游
青灯夜游Original
2019-05-18 15:29:2657757browse

How to install jieba library in python?

Steps to install jieba library in python:

1. Download jieba library----third-party Chinese word segmentation function library

Download address: https://pypi.org/project/jieba/

2. Unzip the installation package and remember the decompression path

3. Use the cmd command prompt to install

First cd to the path of the file we just decompressed, locate the superior file of jieba's setup.py file, and then enter the following command:

python setup.py install

Then if the following situation occurs, it is installed

How to install jieba library in python?

4. Then use an example to test whether the installation is complete

How to install jieba library in python?

The installation is successful!

The above is the detailed content of How to install jieba library in python?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn