module ‘pymp‘ has no attribute ‘shared‘

        运行Github下载的代码出了这个错误。代码段是

import pymp
results = pymp.shared.list()

        运行到pymp.shared的时候就总是报错

Traceback (most recent call last):
  File "refine.py", line 195, in 
    dataset_type=args.experiment,
  File "refine.py", line 130, in main
    results = pymp.shared.list()
AttributeError: module 'pymp' has no attribute 'shared'

        百度这个错误很久都没有百度到,偶然在谷歌上发现了有人建议

pip install pymp-pypi
import pymp-pypi

        导入pymp-pypi包以后就不会报错了,nice!

你可能感兴趣的:(机器学习,python)