Python3 installation Feedparser

Source: Internet
Author: User
Tags python script

When looking at "collective intelligence programming" encountered PYTHON3 environment installation Feedparser problem, search found many people encounter this problem, finally find the following methods to solve.

How to install Feedparser on Python3

Approach A:using Pip

The best method for installing Feedparser (or almost any Python package) are by using PIP, Python's package manager. Pip'll is installed by default alongside Python as of Python 3.4 (and Python 2.7.9). Since the latest version of Python (as of time of editing) is a Python 3.5, this was really the approach you should be taking Whenever possible.

To run Pip, do the following:

Open the command line. Clicking Start, then typing cmd in the run textbox.
Make sure is connected to the Internet.
Type in Pip install Feedparser and hits enter (and wait for pip to download and install Feedparser)

You ' re done! Open up IDLE and type on import Feedparser to confirm.

If attempting to use PIP fails for some reason, try ...

Typing in C:\Python34\Scripts\pip install Feedparser (or wherever you installed Python)
Closing the command line, and re-opening it in admin mode (click Start, type ' cmd ', right-click, select "Run as Administra Tor "), if it ' s failing due to permission errors

If you would like to learn more about PIP, or need help setting it up on older versions of Python, see this post (http://st ackoverflow.com/questions/15724093/difference-between-python-setup-py-install-and-pip-install/15731459# 15731459).

Approach B:manual Install

If, for some reason, you is unable to the use PIP, you can always try doing a manual install.
Part a:prerequisites:

Feedburner needs a module named Setuptools in order to install. Unfortunately, Setuptools isn ' t compatible with Python 3.x, but can use something called distribute as a convenient re Placement. If you already has this installed, you can skip part A.

Download the "installer" here:http://python-distribute.org/distribute_setup.py. This was a Python script that would download the required components from the Internet and install distribute for you.

Open the command line. Clicking Start, then typing cmd in the run textbox. Navigate-to-the-folder containing distribute_setup.py by using CD. On my system, I typed CD C:\Users\Michael0x2a\Downloads

Type python distribute_setup.py (and if that doesn ' t work, C:\Python32\python.exe distribute_setup.py (or wherever do Install Python)). A Bunch of text should appear and scroll by.

Part b:actually installing Feedparser:

Download and extract the latest file from here:https://github.com/kurtmckee/feedparser/releases

Navigate in the command line to where the extracted Feedparser folder is by using the CD command. For example, on my Computer, I typed:

CD C:\Users\Michael0x2a\Downloads\feedparser-5.1\feedparser-5.1

(Your version number is probably differ. For example, you might having feedparser-5.3 or something)

Make sure the folder you have the the Readme, various other docs, and setup.py. To check, type dir into the command line. It should list the files and folders there.

Type python setup.py Install (or C:\Python34\python.exe setup.py install.). Text should appear and slowly scroll by.

You ' re done! Open up IDLE and type import feedparser to confirm.

Python3 installation Feedparser

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.