gpt4 book ai didi

python - 如何在 Windows XP 上使用 pip 安装 selenium 包?

转载 作者:太空宇宙 更新时间:2023-11-03 14:23:30 27 4
gpt4 key购买 nike

我正在运行安装了 Python-3.4.1 的 Windows XP SP3。我想安装 [selenium] webdriver 2使用 pip 打包。我在 Window XP 上以正确的方式设置了 python 的路径变量,所以使用 CMD 我成功运行了 python 命令。但是,当我运行 pip install selenium 时,它说我的命令未知。从这个question ,我看到 PIP 嵌入在 Python-3.4.1 中。

如何使用 pip(或任何其他方式)安装 selenium 包?我应该将路径变量声明为 pip 吗?如果是,在哪里可以找到 pip?

最佳答案

您可以在以下位置找到 pip:Path_to_Python_Home_Directory\C:\Python34\Scripts\pip.exe
由于您向 Python 添加了路径环境变量,我想您知道如何为 pip 执行此操作:)
现在您可以这样安装 selenium:Path_to_Python_Home_Directory\C:\Python34\Scripts\pip.exe install selenium,或者:pip install selenium 如果您设置了它的路径环境变量。

enter image description here

有关 here 的更多详细信息如果你愿意的话。

关于python - 如何在 Windows XP 上使用 pip 安装 selenium 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24055477/

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