安装 Python sikuli 包(安装 pyjnius 的问题) Windows 7 Python 2.6
Posted
技术标签:
【中文标题】安装 Python sikuli 包(安装 pyjnius 的问题) Windows 7 Python 2.6【英文标题】:Installing Python sikuli package (problems installing pyjnius) Windows 7 Python 2.6 【发布时间】:2014-07-19 03:13:50 【问题描述】:我正在使用 Python 2.6 的 Windows7 PC 上工作。我想将 sikuli 导入 Python。我在安装 pyjnius 时遇到问题。以下是我遇到的一些错误:
C:\Users\x\Documents\Public\pyjnius\pyjnius-master>easy_install sikuli
Searching for sikuli
Reading https://pypi.python.org/simple/sikuli/
Best match: sikuli 0.1
Downloading https://pypi.python.org/packages/source/s/sikuli/sikuli-0.1.tar.gz#md5=c83294c6860858437572e6322ea03daf
Processing sikuli-0.1.tar.gz
Writing c:\users\x\appdata\local\temp\easy_install-dbost9\sikuli-0.1\setup.cfg
Running sikuli-0.1\setup.py -q bdist_egg --dist-dir c:\users\x\appdata\local\temp\easy_install-dbost9\sikuli-0.1\egg-dist-tm
p-c7taex
Searching for jnius>=1.1-dev
Reading https://pypi.python.org/simple/jnius/
No local packages or download links found for jnius>=1.1-dev
error: Could not find suitable distribution for Requirement.parse('jnius>=1.1-dev')
然后对于 pyjnius 我得到:
C:\Users\x\Documents\Public\pyjnius\pyjnius-master>easy_install pyjnius
Searching for pyjnius
Reading https://pypi.python.org/simple/pyjnius/
Best match: pyjnius 1.3.0
Downloading https://pypi.python.org/packages/source/p/pyjnius/pyjnius-1.3.0.tar.gz#md5=a65f17fdc95e08f5d3de3188359f4104
Processing pyjnius-1.3.0.tar.gz
Writing c:\users\x\appdata\local\temp\easy_install-or9uvd\pyjnius-1.3.0\setup.cfg
Running pyjnius-1.3.0\setup.py -q bdist_egg --dist-dir c:\users\x\appdata\local\temp\easy_install-or9uvd\pyjnius-1.3.0\egg-d
ist-tmp-kujh4w
warning: no files found matching '*COPYING'
error: Setup script exited with error: None
我下载了 pyjnius 并运行了设置:
C:\Users\bsprott\Documents\Public\pyjnius\pyjnius-master>python setup.py install
C:\Python26\lib\distutils\dist.py:266: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
running build_ext
skipping 'jnius\jnius.c' Cython extension (up-to-date)
building 'jnius' extension
error: None
【问题讨论】:
【参考方案1】:您不满足要求(Python 2.7)。看这里https://github.com/kevlened/sikuli_cpython#requirements
【讨论】:
我也有同样的问题,但是从需求中我无法理解我错过了哪一个。以上是关于安装 Python sikuli 包(安装 pyjnius 的问题) Windows 7 Python 2.6的主要内容,如果未能解决你的问题,请参考以下文章
在 python 中导入 sikuli 模块时遇到问题。我正在使用 RIDE 运行 python 脚本
launchservicesd: secTaskLoadEntitlements failed error=22 while loading java