pypa / pipenv

Python Development Workflow for Humans.
https://pipenv.pypa.io
MIT License
24.89k stars 1.87k forks source link

How to disable "To activate this project's virtualenv..." message #6287

Open George-Madeley opened 4 weeks ago

George-Madeley commented 4 weeks ago

I have a bash script that install the dependencies from a pipenv file and then runs a series of different commands. However, it does not activate a shell. When I run pipenv install or pipenv run, I get the following message:

To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.

Due to the amount of times I need to run pipenv install, this message ends up cluttering my CLI. It also makes it a lot harder to see the messages I want echoed from my bash script. I want to disable this message from appearing.

I have tried export PIPENV_VERBOSITY=-1 and --quiet but neither work. I've tried activating the shell prior to running any commands with pipenv shell but that launches an interactive shell and wont continue executing my script until I run exit.