所以我为我正在处理的项目安装了Jira python包。我使用命令导入它:
from jira.client import JIRA
我得到的错误是:
Traceback (most recent call last):
File "/home/csd-user/test/libs/utils/butler.py", line 9, in <module>
from jira.client import JIRA
ImportError: No module named jira.client
当我试图查看jira的位置时,它告诉我它不存在。尝试安装后,它会抛出这个...
csd-user@62-qa-driver12 ~]$ which jira
/usr/bin/which: no jira in (/opt/clearsky/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/csd-user/.local/bin:/home/csd-user/bin)
[csd-user@62-qa-driver12 ~]$ pip install jira
You are using pip version 7.0.1, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): jira in /opt/clearsky/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): tlslite>=0.4.4 in /opt/clearsky/lib/python2.7/site-packages (from jira)
Requirement already satisfied (use --upgrade to upgrade): requests>=2.6.0 in /opt/clearsky/lib/python2.7/site-packages (from jira)
Requirement already satisfied (use --upgrade to upgrade): requests-toolbelt in /opt/clearsky/lib/python2.7/site-packages (from jira)
Requirement already satisfied (use --upgrade to upgrade): requests-oauthlib>=0.3.3 in /opt/clearsky/lib/python2.7/site-packages (from jira)
Requirement already satisfied (use --upgrade to upgrade): six>=1.9.0 in /opt/clearsky/lib/python2.7/site-packages (from jira)
Requirement already satisfied (use --upgrade to upgrade): ordereddict in /opt/clearsky/lib/python2.7/site-packages (from jira)
Requirement already satisfied (use --upgrade to upgrade): oauthlib>=0.6.2 in /opt/clearsky/lib/python2.7/site-packages (from requests-oauthlib>=0.3.3->jira)
[csd-user@62-qa-driver12 ~]$ pip install --upgrade pip
You are using pip version 7.0.1, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/opt/clearsky/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Requirement already up-to-date: pip in /opt/clearsky/lib/python2.7/site-packages
我不知道如何处理这个问题。我确实成功安装了Jira一次然后发生了这种情况。升级pip不起作用。