question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PIPENV_VENV_IN_PROJECT=true should be default behavior

See original GitHub issue

Is there a reason why pipenv is poluting ~ with virtualenvs by default? To me it doesn’t make any sense. If the specific virtualenv is associated with specific project than why store it somewhere deep inside your ~ and not in the project’s folder?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:16
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
olegantonyancommented, Feb 1, 2018

That’s weird

As a note, now that the original “put virtualenv in project dir” default behavior has been changed (sadly), the Pipenv README should be changed. It shows a virtualenv getting created in the project dir.

But why? I don’t understand why would anyone change good design to bad

2reactions
uranusjrcommented, Feb 1, 2018

@olegantonyan I don’t think either design is bad (or good). There is wild-spread usage of tools using a centralised virualenv storage, such as virtualenvwrapper, Anaconda’s virtualenv support, and pyenv-virtualenv. I’d guess none of their users think it is a bad idea. It is subjective.

(Disclaimer: I do prefer the virtualenv-beside-project approach, and set PIPENV_VENV_IN_PROJECT on my machine. I just don’t think either is objectively superior, at least not much.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Usage of Pipenv - Read the Docs
pipenv install by default does attempt to re-lock unless using the --deploy flag.
Read more >
What's wrong with pipenv? I am genuinely curious. On local
If poetry doesn't add venv management, then pipenv should add packaging management. ... `PIPENV_VENV_IN_PROJECT` not being the default is also annoying for ...
Read more >
pipenv Documentation - Read the Docs
Default is 120 seconds, an arbitrary number that seems to work. PIPENV_VENV_IN_PROJECT. When set True, will create or use the .venv in your...
Read more >
How to set PIPENV_VENV_IN_PROJECT on per-project basis
1 Answer 1 · Simply create the .venv yourself. Pipenv will use it. · Use a tool like direnv to activate this setting...
Read more >
pipenv Changelog - pyup.io
``2021.11.9`` because by default ``sphinx-click`` could no longer ... Use environment variable ``PIPENV_SKIP_LOCK`` to control the behaviour of lock ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found