Here is the author in the learning wordcloud library in the installation process encountered problems and solutions
1. The problem with installing wordcloud in Pycharm is shown below
2. Solution: In the terminal through the wordcloud installation package installation mode, wordcloud installation package download link: /~gohlke/pythonlibs/#wordcloud
Select the version of Python you want to correspond to the author's Python here is 3.8, so choose the chart marked, version selection does not match will be installed incorrectly, as shown in the figure below:
After the download is complete, open the terminal through pip installation, and ensure that the wordcloud installation package in the terminal shows the path directory, otherwise it will show that the file can not be found:
The installation process will install dependent libraries, such as numpy library, matplotlib library and so on.
3. After the successful installation of the Pycharm project does not have wordcloud library, because in Pycharm in the use of the interpreter and the terminal caused by different, change the Pycharm in the interpreter can be.
Step 1: Check the location of the terminal interpreter, go to python and enter the following two commands which will output an address:
import
Step 2: Click File to go to Settings:
Step 3: Click add to select Existing environment:
Step 4: Copy and paste the address from the first step into the text box in the picture, remove the extra '\' and the single quote at the end and click OK:
The next step is to use the wordcloud library happily:
To this point this article on Pycharm install wordcloud library failure and terminal through pip installed Python libraries how to add to the Pycharm interpreter in the article is introduced to this, more related Python wordcloud pip installation failure content please search for my previous articles or continue to browse the following related articles I hope that everyone! I hope you will support me more in the future!