让我知道如何解决有关“ ModuleNotFoundError:没有名为“结果”的模块”的错误。
-best_score.py代码示例
#!/usr/bin/env python3
#
# Count the number of fitting results available.
#
#
import numpy as np
import os
import sys
# Load project modules
sys.path.append(os.path.abspath('python'))
import results
import transformations
-错误示例
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-656f534a7811> in <module>
10 # Load project modules
11 sys.path.append(os.path.abspath('python'))
---> 12 import results
13 import transformations
14
ModuleNotFoundError: No module named 'results'
答案 0 :(得分:1)
转到您的终端,然后执行“ pip安装结果”。检查设置以查看是否将其添加到解释器中。