Python pyPDF2正确安装时出现导入错误

Python pyPDF2正确安装时出现导入错误,python,python-2.7,pypdf,pypdf2,Python,Python 2.7,Pypdf,Pypdf2,我正在Ubuntu 14.04 LTS上使用python 2.7.6。运行此命令时: sudo pip install pypdf2 将显示以下消息: Requirement already satisfied (use --upgrade to upgrade): pypdf2 in /usr/local/lib/python2.7/dist-packages Cleaning up... 这意味着我的系统上已经安装了pypdf2,但当我尝试导入pypdf2时,会出现以下消息: >

我正在Ubuntu 14.04 LTS上使用python 2.7.6。运行此命令时:

sudo pip install pypdf2
将显示以下消息:

Requirement already satisfied (use --upgrade to upgrade): 
pypdf2 in /usr/local/lib/python2.7/dist-packages
Cleaning up...
这意味着我的系统上已经安装了pypdf2,但当我尝试导入pypdf2时,会出现以下消息:

>>> import pyPDF2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyPDF2
导入pyPDF2 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 ImportError:没有名为pyPDF2的模块
资本化计数。尝试导入PyPDF2,看看是否有效。

已经检查过了。不起作用。PyPDF2与Python 3.4兼容。如果您尝试使用命令安装:
sudo pip2 install PyPDF2
我们不能在Python 2.7中使用它吗?