问题描述
"Python Xlib"( http://pypi.python.org/pypi/Python%20Xlib )是用于xlib的低级python库.我已通过apt(即sudo aptitude install python-xlib
)将其安装在Ubuntu Linux机器上.但是,是否可以在中使用pip
安装它?我正在编写一个使用xlib的软件包,并且希望能够在我的setup.py
中包含一个install_requires
行.
"Python Xlib" ( http://pypi.python.org/pypi/Python%20Xlib ) is a low level python library for working with xlib. I have installed it on my Ubuntu Linux machine via apt, i.e. sudo aptitude install python-xlib
. However is it possible to install it with pip
in a virtualenv? I am writing a software package that uses xlib, and would like to be able to include an install_requires
line in my setup.py
.
由于该程序包位于PyPI上(并出现在pip search xlib
的结果中),因此我尝试pip install …
以下程序包名称,但无济于事:python\ xlib
,python-xlib
,Python Xlib
,Python-Xlib
, Python%20Xlib
,但没有一个起作用.`可以使用pip安装python xlib吗?
Since the package is on PyPI (and appears in results of pip search xlib
), I tried to pip install …
the following package names but nothing worked: python\ xlib
, python-xlib
, Python Xlib
, Python-Xlib
, Python%20Xlib
, but none worked.`Is it possible to install python xlib with pip?
推荐答案
sudo pip install svn+https://svn.code.sf.net/p/python-xlib/code/trunk/
为我工作.
这篇关于如何使用pip安装Python Xlib?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!