我想在我的setup.py
中有以下依赖关系:
setup(
...
install_requires=[
'pcapy>=0.10.0',
],
...
)
但是pcapy
无法使用tox
加载:
无论解决方案是什么,每次都是同一个问题。在
默认情况下,它不想从pypi加载0.10.3版本(参见下面的pip日志)。在
如果我使用github上指向最新版本的dependency_链接
setup(
...
install_requires=[
'pcapy==0.10.8',
],
dependency_links = ['http://github.com/CoreSecurity/pcapy/tarball/master#egg=0.10.8']
...
)
返回相同的pip日志。在
有什么想法吗?在
PS1:PIP由tox
用以下命令调用
install_command = pip install --allow-external pcapy --allow-unverified pcapy {opts} {packages}
PS2:PIP日志错误
Downloading/unpacking pcapy>=0.10.0 (from scapy==2.2.0-dev)
Getting page https://pypi.python.org/simple/pcapy/
URLs to search for versions for pcapy>=0.10.0 (from scapy==2.2.0-dev):
* https://pypi.python.org/simple/pcapy/
Analyzing links from page https://pypi.python.org/simple/pcapy/
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.3.tar.gz (from https://pypi.python.org/simple/pcapy/); unknown archive format: .php
Skipping link http://oss.coresecurity.com/projects/pcapy.html (from https://pypi.python.org/simple/pcapy/); unknown archive format: .html
Getting page http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.3.tar.gz
Skipping page http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.3.tar.gz (from https://pypi.python.org/simple/pcapy/) because of Content-Type: application/binary
Getting page http://oss.coresecurity.com/projects/pcapy.html
Analyzing links from page http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy
Skipping link http://corelabs.coresecurity.com (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); not a file
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=list&type=area (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=list&type=project (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=list&type=researcher (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=list&type=publication (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=list&type=advisory (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=list&type=tool (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=list&type=brainstorming (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://www.tcpdump.org/ (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); not a file
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Impacket (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link https://github.com/CoreSecurity/pcapy (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); not a file
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.8.tar.gz (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.8.zip (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.7.tar.gz (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.7.zip (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.6.tar.gz (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.6.zip (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.5.tar.gz (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.5.zip (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.3.zip (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.2.tar.gz (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.2.zip (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.8.win32-py2.5.exe (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.6.win32-py2.5.exe (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.5.win32-py2.5.exe (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.4.win32-py2.4.exe (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://www.python.org/ (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); not a file
Skipping link http://gcc.gnu.org (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); not a file
Skipping link http://winpcap.polito.it/ (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); not a file
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-doc.tar.gz (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500043 (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .cgi
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=page&name=Pcapy.LICENSE (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file= (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.4.tar.gz (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-0.10.4.zip (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=Pcapy&file=pcapy-stable.zip (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Skipping link http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=WPSIG (from http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Pcapy); unknown archive format: .php
Could not find any downloads that satisfy the requirement pcapy>=0.10.0 (from scapy==2.2.0-dev)
Cleaning up...
Removing temporary dir /home/kartoch/Documents/works/python/scapy/.tox/py27/build...
No distributions at all found for pcapy>=0.10.0 (from scapy==2.2.0-dev)
Exception information:
Traceback (most recent call last):
File "/home/kartoch/Documents/works/python/scapy/.tox/py27/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/home/kartoch/Documents/works/python/scapy/.tox/py27/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/kartoch/Documents/works/python/scapy/.tox/py27/lib/python2.7/site-packages/pip/req.py", line 1177, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/home/kartoch/Documents/works/python/scapy/.tox/py27/lib/python2.7/site-packages/pip/index.py", line 277, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for pcapy>=0.10.0 (from scapy==2.2.0-dev)
使用
requirements.txt
可以解决问题:相关问题 更多 >
编程相关推荐