How does pycharm install Jieba word frequency statistics?

1. PyCharm (with registration code and process):
link: https://pan.baidu.com/s/1GEI0KCtkEwB934Hq-B-vmA
extraction code: b6nu
2. The interpreter can be searched on the official website. Website: https://www.python.org/downloads/
3.jieba package:
link: https://pan.baidu.com/s/1BUqQeLOvbccR-Ye-xuv3DA
extraction code: m4k4

The installation method of pycharm: follow the prompts to install, and then enter the registration code.
Now pycharm has not installed an interpreter, and the interpreter was not found in the local when the project was created. Therefore, you also need to download the interpreter, search for python and enter the official website to download (URL: https://www.python.org/downloads/), you can choose the latest version to download, and then install it. After installation pycharm can find the local interpreter. Now pycharm has been able to run.

Import of jieba package:
first download the jieba package, and then unzip it. Open and run, enter cmd, and come to the command line under windows.
Insert picture description here
Find the directory where the jieba package is installed, here is E: \ python \ PyCharm 4.5.4 \ jieba-0.39. Then enter this directory.
Enter in the command line:
cd E: \ python \ PyCharm 4.5.4 \ jieba-0.39
E:
Then find the installation directory of the interpreter, or add environment variables yourself, you don't need to enter the path. Here I am F: \ python \ python.exe, and then enter F: \ python \ python.exe setup.py install in the command line to install.
Now open pycharm, select the interpreter installed before, you can use the jieba package.

Screenshot from the command line:
Insert picture description here

 

Guess you like

Origin www.cnblogs.com/peijz/p/12692936.html