在看《集体智慧编程》时碰到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.

python3安装 feedparser的更多相关文章

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

    环境 ubuntu16.04 python3 安装selenium sudo pip3 install seleium 默认安装完是支持firefox,但是更新得太慢对于较新的firefox已经不支持 ...

  2. suse11 安装 python3.6 python3 安装步骤

    首先需要去网上下载Python-3.6.4.tgz,libopenssl-devel-0.9.8j-2.1.x86_64.rpm zlib-devel-1.2.7-3.14.x86_64.rpm li ...

  3. CentOS7.5 Python3安装pip报错:ModuleNotFoundError: No module named '_ctypes' --Python3

    1.问题:pyhontModuleNotFoundError: No module named '_ctypes'  操作系统:CentOS7.5 安装完Pyhotn3后(如何安装Python3,安装 ...

  4. Python2和Python3安装注意事项

    1. 到官网 https://www.python.org/downloads/windows/ 下载 Windows x86-64 executable installer版本: 2. python ...

  5. python3安装PIL

    原创    2017-09-29 16:15:27 系统环境: 64位win10系统,同时安装python2.7与python3.6两个版本 安装: PIL是Python平台事实上的图像处理标准库,支 ...

  6. python3安装PIL提示Could not find a version that satisfies the requirement pil

    python3安装PIL提示如下错误,安装指令是pip3 install PIL,这个是因为PIL(Python Imaging Library)是Python中一个强大的图像处理库,但目前其只支持到 ...

  7. mac python3安装virtualenv出现的问题

    pip3 install virtualenv pip3 install virtualenvwrapper 安装成功后可能 找不到该命令, 解决办法 1.在 vim ~/.bashrc export ...

  8. Python3安装turtle提示错误:Command "python setup.py egg_info" failed with error code 1

    Python3安装turtle提示错误:Command "python setup.py egg_info" failed with error code 1 Python3.5安 ...

  9. python3 安装

    Centos7 安装python3 #安装sqlite-devel yum -y install sqlite-devel #安装依赖 yum -y install make zlib zlib-de ...

随机推荐

  1. 企业建站系统MiinCMP1.0.5 版公布!

    2014-5-4,在青年节,Juuluu公布了其企业建站系统的新版1.0.5,经过两周多的奋战,Juuluu团队为MiinCMP新浪云版的移植工作做了大量工作.1.0.5已可完美执行于国内免费的jav ...

  2. QtAV的编译方法

    1--编译准备 QtAV的安装编译总指导说明:https://github.com/wang-bin/QtAV/wiki/Build-QtAV QtAV的源代码:https://github.com/ ...

  3. [转]你真的了解setTimeout和setInterval吗?

    原文: http://qingbob.com/difference-between-settimeout-setinterval/ setTimeout和setInterval的基本用法我们一带而过: ...

  4. 基于jwt和角色的访问控制方案-从0开始

    上一版本的构想:http://www.cnblogs.com/vhyc/p/7953779.html 缺陷:dubbo的filter里面不能注入mapper的bean,而且每次查询都访问数据库速度影响 ...

  5. POJ1742:Coins

    浅谈\(DP\):https://www.cnblogs.com/AKMer/p/10437525.html 题目传送门:http://poj.org/problem?id=1742 多重背包,每个物 ...

  6. 洛谷 2831 (NOIp2016) 愤怒的小鸟——仅+1所以bfs优化

    题目:https://www.luogu.org/problemnew/show/P2831 状压dp.跑得很慢.(n^2*2^n) 注意只打一只猪的情况. #include<iostream& ...

  7. Java文件压缩优化工具(ProGuard) 软件介绍 Soft content

    ProGuard是一款免费的Java类文件的压缩.优化.混肴器.它可以帮你删除没用的类,字段,方法与属性,使字节码最大程度地优化,使用简短且无意义的名字来重命名类.字段和方法 .目前eclipse已经 ...

  8. oracle驱动包maven下载失败解决

    oracle是付费的,因此jar包也不是随便让人下的,这就给maven的下载和编译带来了麻烦,因为我们没法从maven仓库直接拿来用.解决办法就是先从别的地方获取jar包,再放到本地仓库里去,这样运行 ...

  9. 关于在windows server 2008 上部署wampserver2.5部署的问题

    1.关闭windows自带防火墙 2.httpd.conf文件权限 apache 2.4.9 外网访问的问题参考此文: http://blog.csdn.net/lysc_forever/articl ...

  10. TCP报文送达确认ACK

    TCP数据包中的序列号(Sequence Number)不是以报文段来进行编号的,而是将连接生存周期内传输的所有数据当作一个字节流,序列号就是整个字节流中每个字节的编号.一个TCP数据包中包含多个字节 ...