Tag Archives: pycharm

Cannot call the same level library solution in pychar

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

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.

Change the Python installation path in Pycharm

Change the python installation path in

pycharm

introduction

sometimes python is installed in a path that is not suitable and python needs to be reinstalled. If pycharm has been installed before, a change in the new python path will cause pycharm to fail and the pycharm configuration needs to be changed. This article is to document how the Python path is changed in Pycharm.

operation method

click file – & gt; Setting

new changes, in turn, click the above button to choose python installation path can