简体   繁体   中英

Import error in pyPDF2 when it is correctly installed

I am using python 2.7.6 on Ubuntu 14.04 LTS. When I run this command:

sudo pip install pypdf2

The following message shows up:

Requirement already satisfied (use --upgrade to upgrade): 
pypdf2 in /usr/local/lib/python2.7/dist-packages
Cleaning up...

This means that pypdf2 is already installed on my system but when I try to import pyPDF2, this message comes up:

>>> import pyPDF2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyPDF2

Capitalization counts. Try import PyPDF2 and see if that works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM