gpt4 book ai didi

python - python的python.org安装器是否自带pip,如何使用?

转载 作者:太空宇宙 更新时间:2023-11-04 05:19:15 25 4
gpt4 key购买 nike

我可以从python.org下载python 2.7.12,所有python版本从2.7.9开始应该都带有pip,但是安装后,在终端中使用pip不起作用。我在 macOS 上。我安装了 pip 了吗?如果安装了,我该如何使用它?

最佳答案

这里有关于 pip 的信息:

https://packaging.python.org/installing/

通常来自 python.org 的 python 带有 pip,也许你应该更新...从终端更新:

pip install -U pip setuptools

当你需要安装软件包时,例如 numpy,只需在终端中执行:

pip 安装 numpy

更多信息在这里:

https://pip.pypa.io/en/stable/reference/pip_install/

您还可以使用来自 anaconda 的 conda install 作为 pip 的替代:

http://conda.pydata.org/docs/get-started.html

关于python - python的python.org安装器是否自带pip,如何使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40873272/

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