disclaimer in advance: I am a student (xiaobai). If I encounter problems in the course design and solve them, I will send this post to share the method.
this article solve the problem of pycharm call library at the same level, close to measure effective p>
without further explanation, the above picture is
as shown above, I want to call the function in cookiespool, the importer, but it keeps going red, what is the problem?This is because the copied package is directory, and the library that Pycharm calls is Python Project, so it cannot be recognized. The solution:
as shown in the figure, labeled as sources root.