Support multiple Pipenv files within the same project

We have a project that includes about 5-6 Pipenv files that are used for different parts of the code.

These projects share some common code, and they are very linked.

I would like to be able to open the project and have pycharm recognize multiple Pipenv files within the same project (found in project root) and not error on unresolved imports.

Is it possible within pycharm?

3 comments
Comment actions Permalink

Hi,

By multiple Pipenv files, do you mean multiple "Pipfile" files?  Can you please describe how do you manage multiple of them in one project?

0
Comment actions Permalink

Hi Andrey,

You are correct, I meant multiple "Pipfile" files. The current state of the project:

folderA/Pipfile

folderB/Pipfile

folderC/Pipfile

common/Pipfile

 

All those folders have a common structure and are packaged to a different Docker container.

We want to be able to work on them as one project with specific dependencies relevant only for folderX to be installed in their virtualenv.

Is it possible with PyCharm?

1
Comment actions Permalink

You can try attaching multiple project together: https://www.jetbrains.com/help/pycharm/opening-multiple-projects.html#Opening_Multiple_Projects.xml

You will be able to set separate interpreter for each project, but work on them in one window. I'm not sure that it will fix the resolve issue, but please try.

0

Please sign in to leave a comment.