从pymks导入模块时出现错误:ModuleNotFoundError:没有名为“ pymks.fmks”的模块

时间:2020-08-01 05:20:18

标签: python-3.x pymks

我已经安装了pymks库,但是当我尝试从中导入模块以运行github中提供的示例时,出现了错误消息。

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-888235aa7043> in <module>
      2 import matplotlib.pyplot as plt
      3 from toolz.curried import pipe, compose, map, curry
----> 4 from pymks.fmks.bases.primitive import discretize
      5 from pymks.fmks.localization import fit, predict, coeff_to_real
      6 from typing import Tuple

ModuleNotFoundError: No module named 'pymks.fmks'

此外,当我跑步时:

python -c "import pymks; print(pymks.__version__)"

我得到:

(tf2) C:\Users\Alienware\sfepy>python -c "import pymks; print(pymks.version)"
C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\numpy_distributor_init.py:32: UserWarning: loaded more than 1 DLL from .libs:
C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\numpy.libs\libopenblas.NOIJJG62EMASZI6NYURL6JBKM4EVBGM7.gfortran-win_amd64.dll
C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\numpy.libs\libopenblas.PYQHXLVVQ7VESDPUVUADXEVJOBGHJPAY.gfortran-win_amd64.dll
C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\numpy.libs\libopenblas.TXA6YQSD3GCQQC22GEQ54J2UDCXDXHWN.gfortran-win_amd64.dll
stacklevel=1)
0.3.4

1 个答案:

答案 0 :(得分:0)