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.

Only create new virtualenv when explicitly requested

See original GitHub issue

Currently I can’t find a way to turn on confirmation prompt before creating a new virtualenv. I often call pipenv shell from the wrong directory and stop it right away, cause it starts to create a new environment. Then I need to remove Pipfile by hand. This is not convenient. How about adding a confirmation prompt before creating a new venv for some commands like shell or run? Or maybe a --create flag?

Issue Analytics

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

github_iconTop GitHub Comments

kennethreitzcommented, Feb 22, 2018

i suggest you use other software if you’re unhappy with the way this software is designed

sametmaxcommented, Feb 22, 2018

Well, you said that when I suggested months and months ago we should add an option to choose the python version precisely instead of just --tree/–two. You said ‘never’, and you changed your mind apparently. But I recall you were less rude at the time.

Actually I recall a humble kenneth I’ve watched at conferences talking about love and help, and offering explanation for rejection or requesting PR, not telling people to go to hell.

But maybe you’re having a bad day.

Read more comments on GitHub >

github_iconTop Results From Across the Web

venv — Creation of virtual environments — Python 3.11.1 ...
Creation of virtual environments is done by executing the command venv : ... Since explicitly activating a virtual environment is not required to...
Read more >
python - Creating a virtualenv with preinstalled packages as in ...
Typically the steps you always takes are: git clone <repo>; cd <repo>; pip install virtualenv (if you don't already have virtualenv installed); virtualenv...
Read more >
Virtual environments for absolute beginners — what is it and ...
Virtual. I like to think of a venv as creating a whole new, somewhat lighter environment specifically for this project. We'll see in...
Read more >
Option to force Poetry to create a virtual environment, even if a ...
When running poetry install , a venv is not created because Poetry detect that a virtual environment (the Conda one) is already active....
Read more >
Python Virtual Environments: A Primer
In this tutorial, you'll learn how to work with Python's venv module to create and manage separate virtual environments for your Python ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found