轻松安装python包

2024-06-16 11:53:15 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在用python安装一个文件,但我说它很容易安装。我试过“sudo apt get install python2.7-dev”

我在xubuntu。在

sudo easy_install autopy
Searching for autopy
Reading https://pypi.python.org/simple/autopy/
Best match: autopy 0.51
Downloading https://pypi.python.org/packages/source/a/autopy/autopy-0.51.tar.gz#md5=b92055aa2a3712a9c3b4c874014b450e
Processing autopy-0.51.tar.gz
Writing /tmp/easy_install-lFRYYC/autopy-0.51/setup.cfg
Running autopy-0.51/setup.py -q bdist_egg --dist-dir /tmp/easy_install-lFRYYC/autopy-0.51/egg-dist-tmp-WC7CUY
src/snprintf.c: In function ‘portable_vsnprintf’:
src/snprintf.c:569:19: warning: variable ‘starting_p’ set but not used [-Wunused-but-set-variable]
       const char *starting_p;
                   ^
src/png_io.c:3:17: fatal error: png.h: No such file or directory
 #include <png.h>
                 ^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Tags: installhttpsorgsrcpypipngeasysetup