HannesZ
HannesZ

Reputation: 609

Using Python builtin library in subproject of a Python project in PyCharm

I've started with a python project in PyCharm (2023.2.1 Community Edition) with only one module/project to which I have added another project that sits at the same level as the first project in the project exlorer. It is meant to work independently of the first one.

The problem I'm facing: I cannot use Python builtin-functions in Project 2, specifically open(), I get an error message: ModuleNotFoundError: No module named 'module1' with module1 being a source folder in the first project.

What I've tried:

Running the code, I still get ModuleNotFoundError: No module named 'module1'. I cannot even locate where module1 is specified so I can edit it. Anyone knows what to do?

Upvotes: 0

Views: 30

Answers (0)

Related Questions