Add custom modules to PyCharm Linter

半腔热情 提交于 2020-06-28 05:26:06

问题


I want to use the PyCharm IDE for developing code in a gem5 project. With

import sys
sys.path.append('/home/<username>/gem5/src/python/')
import m5
from m5.objects import *
system = System()

i tried to import the m5 libraries of gem5 to allow linting within the project. m5 and everything related to it are not found by PyCharm

No Module named m5

How can i import this to make full use of the linter?

来源:https://stackoverflow.com/questions/61619113/add-custom-modules-to-pycharm-linter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!