解决from pyemd import emd ModuleNotFoundError: No module named ‘pyemd‘
报错如下:File "/usr/local/lib/python3.6/dist-packages/gensim/models/keyedvectors.py", line 717, in wmdistancefrom pyemd import emdModuleNotFoundError: No module named 'pyemd'第一步: sudo pip install pyemd==0
·
报错如下:
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'
第一步:
sudo pip3 install pyemd==0.5.1
有报错,如图所示:
报错如下: error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
说明缺少 缺少依赖库
第二步,安装依赖库:
sudo apt-get install build-essential libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev
sudo apt-get install python3.6-dev
注意:要对应自己的python版本
第三步:
sudo pip3 install pyemd==0.5.1
最后,附上 pyemd 的版本
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
更多推荐
已为社区贡献2条内容
所有评论(0)