gpt4 book ai didi

python-3.x - 如何在 Windows 10 的 python3 64 位上安装 PyAutoGui?

转载 作者:行者123 更新时间:2023-12-03 22:27:35 32 4
gpt4 key购买 nike

我试过:

pip install pyautogui

#output:

File "<stdin>", line 1
pip install pyautogui
^
SyntaxError: invalid syntax

我试过了

C:\Python34\pip.exe install pyautogui

#output:

File "<stdin>", line 1
C:\Python34\pip.exe install pyautogui
^
SyntaxError: unexpected character after line continuation character

这些都不起作用。同样,我在 Windows 10 上,我有 python 3,而 python 是 64 位而不是 32 位。

最佳答案

您尝试使用的 pip 不是 python 包或 built-in function . pipPython 的包管理系统。 python3 发行版应该已经预装了 pip

在命令行中使用pip 命令。运行 pip -h 会给你一个关于你可以使用哪些命令的快速描述。见下图:

enter image description here

如果您可以在命令行中复制上面的图像,则意味着您已经安装了 pip,可以继续运行 $ pip install pyautogui

如果你得到的是这样的:

-bash: pip: command not found

这意味着你需要install pip首先。

关于python-3.x - 如何在 Windows 10 的 python3 64 位上安装 PyAutoGui?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43692426/

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