Python jira不是由pip升级的
作者:互联网
我正在使用在虚拟环境中使用PIP安装的python jira包.最近我的脚本开始抱怨jira包版本:
$./my_script.sh
jira/client.py:282: UserWarning: You are running an outdated version of JIRA Python 1.0.3. Current version is 1.0.6.dev20160420173258. Do not file any bugs against older versions.
我尝试使用pip进行升级:
$pip install --upgrade --no-cache-dir jira
Collecting jira
Downloading jira-1.0.3-py2.py3-none-any.whl (46kB)
100% |████████████████████████████████| 51kB 175kB/s
Requirement already up-to-date: requests>=2.6.0 in <...>/.virtualenvs/jira/lib/python3.4/site-packages (from jira)
Requirement already up-to-date: requests-oauthlib>=0.3.3 in <...>/.virtualenvs/jira/lib/python3.4/site-packages (from jira)
Requirement already up-to-date: six>=1.9.0 in <...>/.virtualenvs/jira/lib/python3.4/site-packages (from jira)
Requirement already up-to-date: requests-toolbelt in <...>/.virtualenvs/jira/lib/python3.4/site-packages (from jira)
Requirement already up-to-date: tlslite>=0.4.4 in <...>/.virtualenvs/jira/lib/python3.4/site-packages (from jira)
Requirement already up-to-date: oauthlib>=0.6.2 in <...>/.virtualenvs/jira/lib/python3.4/site-packages (from requests-oauthlib>=0.3.3->jira)
Installing collected packages: jira
Successfully installed jira-1.0.3
我试图删除已安装的jira包并以相同的结果重新安装它. Pip总是只安装1.0.3版,但脚本抱怨更新的版本.
我的假设是1.0.6被标记为已释放(检查在包本身内)但未发布(我不知道这是否是正确的词)pip下载.
任何线索?
问候,
JrBenito
解决方法:
它似乎有一个1.0.6.dev20160420173258版本,但在使用pip install jira时没有下载.可以使用issue #156上针对此新版本找到的解决方法进行安装.点击安装https://pypi.python.org/packages/f6/ea/2535e412ff76d85da20d2be6d1eaf9aa5de49481da94f2fe7e8830eedd35/jira-1.0.6.dev20160420173258-py2.py3-none-any.whl看来你已经评论过,所以希望他们解决永久的问题.
标签:python,pip,python-jira 来源: https://codeday.me/bug/20190608/1200575.html