AttributeError: ‘NoneType‘ object has no attribute ‘get‘

AttributeError: ‘NoneType’ object has no attribute ‘get’

报错信息

Traceback (most recent call last):
  File "/usr/lib/python2.7/encodings/__init__.py", line 74, in search_function
    entry = _cache.get(encoding, _unknown)
AttributeError: 'NoneType' object has no attribute 'get'
Failed to run '"/opt/***/***/_setup_util.py" ': return code 1

解决办法

settings -> tools ->Python Scientific ->Show plots in toolwindow(取消勾选)

调整pycharm设置

你可能感兴趣的:(日常报错,python,ubuntu,pytorch)