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
?
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:
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:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.