标签: autopy

安装python autopy时出错

嘿,我在这里看了一下老问题,但它没有回答我的问题

我已经安装了libpng,然后尝试安装autopy并获得complie错误.

我不擅长python但所以我不确定如何修复它们.

Ashley:~ ashleyhughes$ sudo easy_install autopy
Searching for autopy
Reading http://pypi.python.org/simple/autopy/
Reading http://www.autopy.org
Best match: autopy 0.51
Downloading http://pypi.python.org/packages/source/a/autopy/autopy-0.51.tar.gz#md5=b92055aa2a3712a9c3b4c874014b450e
Processing autopy-0.51.tar.gz
Running autopy-0.51/setup.py -q bdist_egg --dist-dir /tmp/easy_install-U9uWoj/autopy-0.51/egg-dist-tmp-hdjtIx
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
src/screengrab.c:48:26: warning: implicit declaration of function
      'CGDisplayBitsPerPixel' is invalid in C99
      [-Wimplicit-function-declaration]
        bitsPerPixel = (uint8_t)CGDisplayBitsPerPixel(displayID);
                                ^ …
Run Code Online (Sandbox Code Playgroud)

python autopy

8
推荐指数
2
解决办法
4800
查看次数

Python - 像老鼠一样的人类行为

我正在尝试使用pyautogui或模拟类似人类的鼠标运动autopy

有哪位知道或者可以提供一下好的方法吗?

假设我想从 (0, 0) 移动到 (56, 200)。如果我使用pyautogui.moveTo(),它就会跳到那里。如果我使用autopy.mouse.smooth_move(),它可以完成工作,但运动非常假。

我希望它移动到屏幕上的随机节点,但最终到达目的地。

python autopy pyautogui

8
推荐指数
1
解决办法
7791
查看次数

可以在本地安装autopy吗?

我似乎在安装autopy.h时遇到了一些麻烦

https://github.com/msanders/autopy/#introduction
Run Code Online (Sandbox Code Playgroud)

我已经通过git尝试了安装:

$ git clone git://github.com/msanders/autopy.git
$ cd autopy
$ python setup.py build
Run Code Online (Sandbox Code Playgroud)

但我收到以下错误:

>python setup.py build 
running build
running build_py
running build_ext
building 'color' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DNDEBUG=1 -DMM_LITTLE_ENDIAN -DUSE_X11 -I/usr/include/python2.6 -c src/autopy-color-module.c -o build/temp.linux-i686-2.6/src/autopy-color-module.o -Wall -Wparentheses -Winline -Wbad-function-cast -Wdisabled-optimization -Wshadow
In file included from src/autopy-color-module.c:1:
src/autopy-color-module.h:5:20: error: Python.h: No such file or directory
In file included from src/autopy-color-module.c:1:
src/autopy-color-module.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘initcolor’ …
Run Code Online (Sandbox Code Playgroud)

python install autopy

1
推荐指数
1
解决办法
1299
查看次数

标签 统计

autopy ×3

python ×3

install ×1

pyautogui ×1