在 wsl 中新创建的 conda 环境中出现“软件包已安装”

在 wsl 中新创建的 conda 环境中出现“软件包已安装”

我创建了一个新的、空的 conda 环境:

$ conda create --name openai_test

我激活它:

(base) $ conda activate openai_test

然后尝试安装程序包:

(openai_test) $ pip install openai

但我得到:

(openai_test) $ pip install openai
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: openai in ./lib/python3.11/site-packages (0.27.9)
Requirement already satisfied: requests>=2.20 in ./lib/python3.11/site-packages (from openai) (2.31.0)
Requirement already satisfied: tqdm in ./lib/python3.11/site-packages (from openai) (4.65.0)
...

为什么?我刚刚创建了一个全新的环境,为什么一切都“已经满足”?

我注意到的另一件事是当我激活环境后检查 pip 位置时:

(openai_test) $ which pip

我得到:

/

home/<user-name>/.local/bin/pip

这是正确的吗?pip 不应该指向 conda 安装目录吗?

相关内容