我是python的新手并且一直在尝试使用pip安装jira 1.0.10.tar.gz软件包。我已经在我的系统上安装了python 3.6。我的命令行虽然抛出了这个错误:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\manmohit
.kaur\AppData\Local\Temp\pip-z0dmal3l-build\
请在下面找到日志
D:\cucumber\Drivers\Drivers>pip3 install jira-1.0.10.tar.gz
Processing d:\cucumber\drivers\drivers\jira-1.0.10.tar.gz
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/pytest-runner/: [Errno 1100
2] getaddrinfo failed -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno 11002] getaddrinfo
failed -- Some packages may not be found!
No local packages or working download links found for pytest-runner
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\manmohit.kaur\AppData\Local\Temp\pip-z0dmal3l-build\setup.p
y", line 37, in <module>
test_suite='tests')
File "c:\program files (x86)\python36-32\lib\distutils\core.py", line 108,
in setup
_setup_distribution = dist = klass(attrs)
File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\dist
.py", line 315, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\dist
.py", line 361, in fetch_build_eggs
replace_conflicting=True,
File "c:\program files (x86)\python36-32\lib\site-packages\pkg_resources\_
_init__.py", line 850, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "c:\program files (x86)\python36-32\lib\site-packages\pkg_resources\_
_init__.py", line 1122, in best_match
return self.obtain(req, installer)
File "c:\program files (x86)\python36-32\lib\site-packages\pkg_resources\_
_init__.py", line 1134, in obtain
return installer(requirement)
File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\dist
.py", line 429, in fetch_build_egg
return cmd.easy_install(req)
File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\comm
and\easy_install.py", line 659, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Re
quirement.parse('pytest-runner')
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\manmohit
.kaur\AppData\Local\Temp\pip-z0dmal3l-build\
请查看以下日志&#34; pip install jira&#34;
D:\cucumber\Drivers\Drivers>pip install jira-1.0.10.tar.gz
Processing d:\cucumber\drivers\drivers\jira-1.0.10.tar.gz
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/pytest-runner/: [Errno 1100
2] getaddrinfo failed -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno 11002] getaddrinfo
failed -- Some packages may not be found!
No local packages or working download links found for pytest-runner
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\manmohit.kaur\AppData\Local\Temp\pip-zui7xx58-build\setup.p
y", line 37, in <module>
test_suite='tests')
File "c:\program files (x86)\python36-32\lib\distutils\core.py", line 108,
in setup
_setup_distribution = dist = klass(attrs)
File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\dist
.py", line 315, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\dist
.py", line 361, in fetch_build_eggs
replace_conflicting=True,
File "c:\program files (x86)\python36-32\lib\site-packages\pkg_resources\_
_init__.py", line 850, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "c:\program files (x86)\python36-32\lib\site-packages\pkg_resources\_
_init__.py", line 1122, in best_match
return self.obtain(req, installer)
File "c:\program files (x86)\python36-32\lib\site-packages\pkg_resources\_
_init__.py", line 1134, in obtain
return installer(requirement)
File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\dist
.py", line 429, in fetch_build_egg
return cmd.easy_install(req)
File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\comm
and\easy_install.py", line 659, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Re
quirement.parse('pytest-runner')
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\manmohit
.kaur\AppData\Local\Temp\pip-zui7xx58-build\
D:\ cucumber \ Drivers \ Drivers&gt; pip install jira
Collecting jira
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03E76350>: Failed to establish a new c
onnection: [Errno 11002] getaddrinfo failed',)': /simple/jira/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03E760D0>: Failed to establish a new c
onnection: [Errno 11002] getaddrinfo failed',)': /simple/jira/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03E76090>: Failed to establish a new c
onnection: [Errno 11002] getaddrinfo failed',)': /simple/jira/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03E76150>: Failed to establish a new c
onnection: [Errno 11002] getaddrinfo failed',)': /simple/jira/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03E760B0>: Failed to establish a new c
onnection: [Errno 11002] getaddrinfo failed',)': /simple/jira/
Could not find a version that satisfies the requirement jira (from versions: )
No matching distribution found for jira
答案 0 :(得分:0)
要安装jira 1.0.10
,您需要在安装时提及版本,如下所示
pip install jira==1.0.10
正如您所提到的,您正在使用python 3.6
,pypi page of jira 1.0.10表示它需要python的某些组件(如argeparse
和ordereddict
)使python版本小于{分别为{1}}和3.2
。
因此可以安全地假设3.1
与jira 1.0.10
使用jira 1.0.10,您需要使用小于3.1的python版本。
所以使用python 3.0是安全的