Installing PYPDF2 under Windows

Source: Internet
Author: User

Since yesterday began in the laboratory summer study, yesterday in the computer room to use a U disk to install Ubuntu server.

Today the teacher assigned the task of writing text-processing scripts in Python, including handling pdf/doc/txt/excel and so on.

First deal with the PDF, surf the internet, Pypdf has stopped more, its function is relatively small, now use is PYPDF2.

But PYPDF2 I failed to install, and later found that it seems to be suitable for the Linux environment, and according to the command line error prompts the setup.py contained path statements changed, but there is a problem, the package directory does is not exist, Later, I found a similar question in a blog post:

beautifulsoup installation, I was installed under Windows, the official website does not have a window under the installation of the tutorial, I was loaded on the feeling. It has a setup.py, I ran with "Python.exe setup.py install", but prompted "Error:package directory ' BS4 ' does not exist", It turns out that the default Python execution path is not in the current directory, but in the user directory below the C drive, so it's good to move the BS4 file over. Run well, generate a build folder, I know it must be placed in the Python file under the Lib folder, so the following BS4 moved to the LIB, it is OK. In the future, direct import can be used. It would have been easier for Linux users to install them.

So I put PyPDF2 this file folder in the Python.exe directory, and then put PyPDF2 into the Lib directory down, so OK, PyPDF2 installation success.

Installing PYPDF2 under Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.