gpt4 book ai didi

python - 如何将 pip 包安装到特定的 Python 版本?

转载 作者:太空宇宙 更新时间:2023-11-04 07:53:33 24 4
gpt4 key购买 nike

我有 Python 3.7 和 Python 3.6。如何选择我想要 PIP 包的 Python 版本?

最佳答案

在 Linux 上,@jwodder 的回答很好,但在 Windows 上,使用通常默认安装的 Python 启动器。您将要启动的 Python 版本指定为 -X.Y,例如:

py -3.6 -m pip install ...

关于python - 如何将 pip 包安装到特定的 Python 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51866914/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com