pipenv python 3.7不做任何事情

2024-09-28 05:15:34 发布

您现在位置:Python中文网/ 问答频道 /正文

当我跑的时候

pipenv --python 3.7

它是:

Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.

当我跑的时候

pipenv --rm
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
You are attempting to remove a virtualenv that Pipenv did not create. Aborting.
Aborted!

因此,我无法创建或删除虚拟环境

我使用mac,并使用自制软件安装python


Tags: toyouthatenvironmentpipenvcreatecannotice
1条回答
网友
1楼 · 发布于 2024-09-28 05:15:34

从错误消息中:

Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead.

我们可以看到,Pipenv没有创建新的虚拟环境,因为它发现您已经在另一个虚拟环境中运行它。设置^{}将强制它仍然创建另一个虚拟环境,即使它发现自己已经在一个虚拟环境中运行

相关问题 更多 >

    热门问题