【发布时间】:2021-02-20 23:06:54
【问题描述】:
我正在尝试使用pipenv 设置 Python 虚拟环境。
在 VS Code 中,在 Windows 10 操作系统的新目录中启动,之后:
-
python -m venv work_env在终端中 - 注意
work_env中Script文件夹的路径 - 正在执行
Ctrl-Shift-P和Preferences: Open Workspace Settings - 在
settings.json,添加:
- 第二步到“python.pythonPath”的环境路径:
- 文件夹名称,以防止将pylance黄色波浪线添加到“python.analysis.extraPaths”:
- 在终端中执行
pipenv install - 在 Pipfile 中更新包名称
- 在终端中执行
pipenv update
... 来了Courtesy Notice: Pipenv found itself running within a virtual environment, ... You can set PIPENV_VERBOSITY=-1 to suppress this warning.
我在哪个文件夹/文件/配置中设置这个PIPENV_VERBOSITY=-1?
【问题讨论】:
标签: python visual-studio-code pipenv python-venv