資源共享吧|易語(yǔ)言論壇|逆向破解教程|輔助開(kāi)發(fā)教程|網(wǎng)絡(luò)安全教程|rigasin.com|我的開(kāi)發(fā)技術(shù)隨記

 找回密碼
 注冊(cè)成為正式會(huì)員
查看: 1381|回復(fù): 1
打印 上一主題 下一主題

pyautogui安裝

[復(fù)制鏈接]

1

主題

4

帖子

0

精華

新手上路

Rank: 1

資源幣
10
積分
5
貢獻(xiàn)
0
在線(xiàn)時(shí)間
0 小時(shí)
注冊(cè)時(shí)間
2020-3-25
最后登錄
2020-3-26
跳轉(zhuǎn)到指定樓層
樓主
發(fā)表于 2020-3-26 15:40:42 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
安裝

要安裝PyAutoGUI,請(qǐng)pyautogui通過(guò)運(yùn)行(在Windows上)或(在macOS和Linux上)從PyPI 安裝軟件包。(在macOS和Linux上,指的是Python 2的pip工具。)pip install pyautoguipip3 install pyautoguipip

特定于操作系統(tǒng)的說(shuō)明如下。

注意:自2019年10月起,Pillow模塊不支持Python 3.8。PyAutoGUI當(dāng)前依賴(lài)于此模塊的屏幕截圖功能。

窗口

在Windows上,您可以使用該py.exe程序運(yùn)行最新版本的Python:

py -m pip install pyautogui

如果您安裝了Python的多個(gè)版本,則可以選擇帶有命令行參數(shù)的py。例如,對(duì)于Python 3.8,運(yùn)行:

py -3.8 -m pip install pyautogui

(這與運(yùn)行相同。)pip install pyautogui


MACOS

在macOS和Linux上,您需要運(yùn)行python3:

python3 -m pip install pyautogui

如果您正在運(yùn)行El Capitan并在安裝pyobjc時(shí)遇到問(wèn)題,請(qǐng)嘗試:

MACOSX_DEPLOYMENT_TARGET=10.11 pip install pyobjc

Linux的

在macOS和Linux上,您需要運(yùn)行python3:

python3 -m pip install pyautogui

在Linux上,此外,您需要安裝scrot應(yīng)用程序以及Tkinter:

sudo apt-get install scrot

sudo apt-get install python3-tk

sudo apt-get install python3-dev


PyAutoGUI安裝它依賴(lài)的模塊,包括PyTweening,PyScreeze,PyGetWindow,PymsgBox和MouseInfo。



回復(fù)

使用道具 舉報(bào)

9

主題

371

帖子

0

精華

終身高級(jí)VIP會(huì)員

Rank: 7Rank: 7Rank: 7

資源幣
216
積分
390
貢獻(xiàn)
0
在線(xiàn)時(shí)間
145 小時(shí)
注冊(cè)時(shí)間
2020-2-21
最后登錄
2024-6-15

終身VIP會(huì)員

沙發(fā)
發(fā)表于 2020-3-26 22:56:44 | 只看該作者
祝資源共享吧越來(lái)越火!
 點(diǎn)擊右側(cè)快捷回復(fù)  

本版積分規(guī)則

小黑屋|資源共享吧 ( 瓊ICP備2023000410號(hào)-1 )

GMT+8, 2025-4-18 16:59 , Processed in 0.042408 second(s), 13 queries , MemCached On.

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回復(fù) 返回頂部 返回列表