The error is as follows:
File "/usr/local/lib/python3.6/dist-packages/gensim/models/keyedvectors.py", line 717, in wmdistance
from pyemd import emd
ModuleNotFoundError: No module named 'pyemd'
first step:
sudo pip install pyemd==0.5.1
There is an error, as shown in the figure:

The error is reported as follows: error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
Description missing missing dependent library
The second step is to install the dependent libraries:
sudo apt-get install build-essential libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev
sudo apt-get install python3.6-dev
Note: to correspond to your own python version
third step:
sudo pip install pyemd==0.5.1
Finally, attach the pyemd version
ERROR: Could not find a version that satisfies the requirement pyemd==0.8.1 (from versions: 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.1.1, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.5.0, 0.5.1)
ERROR: No matching distribution found for pyemd==0.8.1
I was given an error and I still didn't understand it at the beginning. Later found that the error is in the configuration of the environment variable I started writing like this. But actually ...
ModuleNotFoundError: No module named ‘django.core.urlresolvers’ Error django2.0 changed the original django.core.urlresolvers package to django.urls In this way, the index home page can be...
Solve the problem of running the python windows file in qtcreator: from PySide2.QtWidgets import QApplication, QMainWindowModuleNotFoundError: No module named 'PySide2 The reason is that the python pr...
from StyleFrame import StyleFrame, Styler ModuleNotFoundError: No module named 'StyleFrame' Check the installed pip package is no problem, the thief pit, including tutorials, etc. are al...
from lxml import etree ModuleNotFoundError: No module named 'lxml' Lxml is not installed Just install it and it's ok. pip install lxml Wait for the installation...
Transfer from a foreign webpage. This situation may be the reason for the package mismatch after upgrading python from 32-bit to 64-bit. Try the following code to solve the problem. ...
Error condition Solution Here: I need to install the Crypto library, I use the command ··· pip3 install Crypto pip3 install pycrypto...
Project scene: Tip: Here you will briefly describe the project related background: For example: Project Scene: Example: Communication via Bluetooth chip (HC-05) with mobile app, transfer a batch of se...
I have encountered this problem when I run the code: from .cv2 import * ModuleNotFoundError: No module named ‘cv2.cv2’ This fault is that the version of Python and the version of OpenCV-Py...
question: Error prompt description: from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip’ image description: Enter the PIP to find its use command: Solution: C...