[Python example 5.28] Solution to error in jieba library installation ~ summary notes

The solution to the jieba library installation error is as follows:

First open and run cmd in the menu bar, enter pip install jieba

Insert picture description here

If the above page appears, congratulations, you won the prize. At this time, your own computer cannot install the third-party library, you need to download a jieba library again

Solution steps:

The link to download the jieba library: https://pypi.org/project/jieba/#files

  1. Download the above link in Google Chrome
    Insert picture description here

  2. Download the jieba compressed package, unzip it in the general directory where you installed python, find the jieba file in the jieba folder, move it to the Lib file in the python directory, do not copy, do not cut and paste
    Insert picture description here

  3. Open cmd, enter import jieba

  4. The last step is to enter pip install jieba
    Insert picture description here

  5. Finally, if Successfully installed jieba appears, it means you have succeeded
    ~
    ~
    ~
    ~
    One sentence every day: Summarize what you have learned every day, and do it better than yesterday

Guess you like

Origin blog.csdn.net/A6_107/article/details/106412086