根据Dependency section in the setuptools manualgit
,可以在dependency_links
参数中使用git+URL
将存储库URL指定给setup
。但是
cd /tmp
mkdir py-test
cd py-test
touch __init__.py
以及创建一个setup.py
文件
当我运行python setup.py build && sudo setup.py install
时,导致错误Download error on git+https://github.com/wxWidgets/wxPython.git: unknown url type: git+https -- Some packages may not be found!
。在
安装包python-setuptools-git
没有帮助。在
我在Ubuntu15.04上使用了setuptools
18.2和python
2.7。在
从setuptools docs:
因此,修复方法是将
#egg=wxPython
片段附加到末尾:相关问题 更多 >
编程相关推荐