Skip to content
Discussion options

You must be logged in to vote

Virtualenv doesn't seem to be able to inherit packages from other virtualenvs.
Neither does Venv.

  • You can install some packages into the base installation then create virtualenvs with --system-site-packages (pyenv virtualenv can pass arbitrary switches to the underlying command) thus create a 2-level hierarchy
  • People have reported success using .pth files to use packages installed into another environment
  • Finally, you can use a project-centric approach using Pipenv. It can create environments on demand from spec files. There'll be duplication -- but this mechanic eliminates human error as long as the spec files are correct.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rontarrant
Comment options

@rontarrant
Comment options

Answer selected by rontarrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants