[Fixed]-PyCharm include and modify External library in project

20👍

Well, you can add other directories as content roots:

enter image description here

Then simply mark the directory as a source root:

enter image description here

This should allow you to refactor, rename and do all the things you’ve wanted to do.

2👍

Another option would be to place libraries into separate project (or go even further and place each library in its own project) and then open this project/these projects side-by-side with the main project. This way you have clear separation between the main project and libraries used. This comes handy when you work on another project using some of the same libraries as then you only need to open already existing project containing libraries and you are done.

Leave a comment