python3安装 feedparser

在看《集体智慧编程》时碰到python3环境下安装feedparser的问题,搜索发现很多人碰到此问题,最终找以下方法解决。

how to install feedparser on python3

Approach A: Using Pip

The
best method for installing FeedParser (or almost any Python package) is
by using pip, Python‘s package manager. pip will be 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 Python 3.5, this is
really the approach you should be taking whenever possible.

To run pip, do the following:

Open the command line. You can do this by clicking start, then typing cmd in the run textbox.
    Make sure you are connected to the internet.
    Type in pip install feedparser and hit enter (and wait for pip to download and install FeedParser)

You‘re done! Open up IDLE and type in 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 Administrator"), 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://stackoverflow.com/questions/15724093/difference-between-python-setup-py-install-and-pip-install/15731459#15731459).

Approach B: Manual install

If, for some reason, you are unable to 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 you can use something
called Distribute as a convenient replacement. If you already have this
installed, you can skip Part A.

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

Open the command line. You can do this by clicking start, then typing
cmd in the run textbox. Navigate over 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 you did 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 will probably differ. For example, you might have feedparser-5.3 or something)

Make sure the folder you‘re in has 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.

时间: 2024-10-19 13:11:23

python3安装 feedparser的相关文章

python3 安装

Centos7 安装python3 #安装sqlite-devel yum -y install sqlite-devel #安装依赖 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel #下载安装 wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz mkdir -p /usr/local/python3 tar -zxvf Py

centos6.5下安装python3安装、python3虚拟环境创建venv

原因:在安装完centos6.5后,通过命令行键入python时,默认为python2.6.6版本,系统并没有安装python3版本.又想学习python3,因此需要在centos6.5下安装python3版本. <python3安装> 1.下载python3的安装包: (1)如果能够联网,则直接: [[email protected] 3pyex]# wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz 其中,我这里安装的

Python3安装mysql模块

pip3 install mysql 1.错误1 原因:在 Python 3.x 版本后,ConfigParser.py 已经更名为 configparser.py 所以出错! 解决,将模块cp一份为ConfigParser.py 2. find / -name mysql_config 没有 你需要安装yum install mysql-devel,然后在安装MySQL (pip3 install mysql) 安装成功,但python3还是不能用mysql,因为python不支持mysqld

ubuntu16.04 python3 安装selenium及环境配置

环境 ubuntu16.04 python3 安装selenium sudo pip3 install seleium 默认安装完是支持firefox,但是更新得太慢对于较新的firefox已经不支持了,需要安装geckodriver,地址 https://github.com/mozilla/geckodriver/releases/ 下载完后解压然后在终端中cd到下载文件路径下,下面以路径为下载为例 依次执行以下命令: 安装xvfb sudo apt-get install xvfb 安装p

python3安装PIL

原创    2017-09-29 16:15:27 系统环境: 64位win10系统,同时安装python2.7与python3.6两个版本 安装: PIL是Python平台事实上的图像处理标准库,支持多种格式,并提供强大的图形与图像处理功能.目前PIL的官方最新版本为1.1.7,支持的版本为python 2.5, 2.6, 2.7,并不支持python3,因此我们用pillow代替,进入DOS命令行窗口,敲入以下代码 pip install pillow 提示安装完成,但是该库只能在pytho

Python3安装(二)

因为Python是跨平台的,它可以运行在Windows.Mac和各种Linux/Unix系统上.在Windows上写Python程序,放到Linux上也是能够运行的. 要开始学习Python编程,首先就得把Python安装到你的电脑里.安装后,你会得到Python解释器(就是负责运行Python程序的),一个命令行交互环境,还有一个简单的集成开发环境. 安装Python 3.5 目前,Python有两个版本,一个是2.x版,一个是3.x版,这两个版本是不兼容的.由于3.x版越来越普及,我们的教程

Mac os下Python3安装Django

1.查看pip版本 没有的话就是没安装成功 安装python的时候一般会自动安装pip //pip版本 pip -V //对应python2.7 pip 9.0.1 from /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg (python 2.7) pip3 -V //对应python3.6 pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.6/lib/pyth

【转载】python3安装scrapy之windows32位爬坑

python3安装scrapy之windows32位爬坑 原创 2016年11月06日 01:38:08 标签: scrapy / windows / python / 开源框架 / 网络爬虫 早就听说scrapy不支持python3,而scrapy作为一款优秀的开源框架,不在新的python上集成一下实在可惜.最近刚好打算开始学习网络爬虫,网上又有那么多教程,so今天就来爬一下这个坑. 首先当然是安装一下python,官网可以直接安装最新的3.5.2.安装完成以后,可以成功python后在cm

Python3安装scrapy框架步骤

Python3安装scrapy框架步骤 1.       安装wheel a)     Pip install wheel 2.       安装lxml Pip install lxml 3.       安装Twisted Pip install Twisted 4.       安装scrapy Pip install scrapy 原文地址:https://www.cnblogs.com/xshan/p/8228293.html