私は、 stackoverflow.com/a/17442663/368102の答えと非常によく似た何かをすることになりました。
PyPirequests-file
の別のパッケージと名前が競合する github パッケージが必要です。requests-file
どちらにもバージョン 1.0 があり、PyPi バージョンにはいくつかの上位バージョンがあります。
私の回避策はias_tools/setup.py
次のようになります。
setup(
...
install_requires=[
'requests-file<=99.99',
],
dependency_links=[
'https://github.com/jvantuyl/requests-file/archive/b0a7b34af6e287e07a96bc7e89bac3bc855323ae.zip#egg=requests-file-99.99'
]
)
私の場合、私は使用してpip
いるので、以下も使用する必要がありました--process-dependency-links
:
% pip install --process-dependency-links ./ias_tools
You are using pip version 6.0.6, however version 6.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Processing ./ias_tools
DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release.
Collecting requests-file<=99.99 (from ias-tools==0.1)
Downloading https://github.com/jvantuyl/requests-file/archive/b0a7b34af6e287e07a96bc7e89bac3bc855323ae.zip
Requirement already satisfied (use --upgrade to upgrade): requests>=1.1.0 in ./venv/lib/python2.7/site-packages (from requests-file<=99.99->ias-tools==0.1)
Installing collected packages: ias-tools, requests-file
Running setup.py install for ias-tools
Running setup.py install for requests-file
Successfully installed ias-tools-0.1 requests-file-1.0
非推奨を非推奨にするためにプルリクエストが pip に送信されたので(それについての議論の後)、私は非推奨の通知についてあまり心配していません。