Reputation: 1777
I am trying to set up a Python virtual environment with pipenv
.
In VS Code, started in a fresh directory of Windows 10 OS, after doing:
python -m venv work_env
in the TerminalScript
folder within work_env
Ctrl-Shift-P
and Preferences: Open Workspace Settings
settings.json
, adding:pipenv install
in the Terminalpipenv update
in the Terminal... There comes a Courtesy Notice: Pipenv found itself running within a virtual environment, ... You can set PIPENV_VERBOSITY=-1 to suppress this warning.
In what folder / file / configuration do I set this PIPENV_VERBOSITY=-1
?
Upvotes: 3
Views: 4160
Reputation: 170
On Mac or Linux you can run export PIPENV_VERBOSITY=-1
and for that terminal process PIPENV_VERBOSITY
will be set to -1
. If you want to set this globally you can open your ~/.zshrc
(or .bashrc
, .etc) and write export PIPENV_VERBOSITY=-1
on a new line anywhere in there. Save and exit and now any terminal you have should have this environment variable set.
Upvotes: 0
Reputation: 389
Entering the command set PIPENV_VERBOSITY=-1
didn't work for me.
So I added PIPENV_VERBOSITY
variable and set the value to -1 in the environment variable window
Setting Environment Variables:
Upvotes: 0
Reputation: 10354
According to the information you provided, I reproduced the problem you described:
The reason is as this 'Courtesy Notice', "pipenv install
" is to create a virtual environment for the current project, and we have created a virtual environment "work_env
", so it prompts us to ignore this environment or
Suppress this warning.
We can directly enter the command "set PIPENV_VERBOSITY=-1
" in the console to suppress this warning:
After:
The pipenv
version I use is 2020.11.4
.
Update:
Upvotes: 3