我如何将pip安装到错误的python副本这一事实?

问题描述 投票:0回答:1

我用pip安装了一个名为stdlib_list的脚本:

Microsoft Windows [Version 10.0.18362.418]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\Sam>python -m pip install stdlib_list --user
Requirement already satisfied: stdlib_list in c:\users\sam\appdata\roaming\python\python37\site-packages (0.5.0)

注意,stdlib_list已安装到名为python37的文件夹中>

我已经检查了Windows使用的路径。

enter image description here

请注意,环境变量path指向Python38-32,而不是python37

什么给了?

[我使用pip安装了名为stdlib_list的脚本:Microsoft Windows [版本10.0.18362.418](c)2019 Microsoft Corporation。版权所有。 C:\ Users \ Sam> python -m pip install stdlib_list --...

python python-3.x pip
1个回答
0
投票

这是因为您使用的是安装在Python38-32中的pip版本,而不是python37。

© www.soinside.com 2019 - 2024. All rights reserved.