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.
python3安装 feedparser的更多相关文章
- ubuntu16.04 python3 安装selenium及环境配置
环境 ubuntu16.04 python3 安装selenium sudo pip3 install seleium 默认安装完是支持firefox,但是更新得太慢对于较新的firefox已经不支持 ...
- 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 ...
- CentOS7.5 Python3安装pip报错:ModuleNotFoundError: No module named '_ctypes' --Python3
1.问题:pyhontModuleNotFoundError: No module named '_ctypes' 操作系统:CentOS7.5 安装完Pyhotn3后(如何安装Python3,安装 ...
- Python2和Python3安装注意事项
1. 到官网 https://www.python.org/downloads/windows/ 下载 Windows x86-64 executable installer版本: 2. python ...
- python3安装PIL
原创 2017-09-29 16:15:27 系统环境: 64位win10系统,同时安装python2.7与python3.6两个版本 安装: PIL是Python平台事实上的图像处理标准库,支 ...
- python3安装PIL提示Could not find a version that satisfies the requirement pil
python3安装PIL提示如下错误,安装指令是pip3 install PIL,这个是因为PIL(Python Imaging Library)是Python中一个强大的图像处理库,但目前其只支持到 ...
- mac python3安装virtualenv出现的问题
pip3 install virtualenv pip3 install virtualenvwrapper 安装成功后可能 找不到该命令, 解决办法 1.在 vim ~/.bashrc export ...
- 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安 ...
- python3 安装
Centos7 安装python3 #安装sqlite-devel yum -y install sqlite-devel #安装依赖 yum -y install make zlib zlib-de ...
随机推荐
- weblogic控制台的启动与禁用
在一些安全漏洞扫描中,经常会扫描发现,使用weblogic管理控制台,会有个中危的漏洞. http://192.168.10.46:7001/console/login/LoginForm.jsp W ...
- ①SpringCloud前序知识-CAP原则
本文主要介绍SpringCloud里头一些常见的原理.定理等相关SpringCloud的技术知识 一.CAP原则 CAP原则又称CAP定理,指的是在一个分布式系统中,Consistency(一致性). ...
- <trim>: prefix+prefixOverrides+suffix+suffixOverrides
<trim prefix="where" prefixOverrides="where" suffixOverrides="and"& ...
- 监控文件的watchdog
watchdog用来监控指定目录/文件的变化,如添加删除文件或目录.修改文件内容.重命名文件或目录等,每种变化都会产生一个事件,且有一个特定的事件类与之对应,然后再通过事件处理类来处理对应的事件,怎么 ...
- Linux常用命令(个人使用频率较高)
1,日志查看 tail(cat) -f|grep ERROR(任意字符) filepath (任意行数) -f|grep ERROR(任意字符) filepath 2,查看目录&授权 file ...
- Erlang基础 -- 介绍 -- 历史及Erlang并发
前言 最近在总结一些Erlang编程语言的基础知识,拟系统的介绍Erlang编程语言,从基础到进阶,然后再做Erlang编程语言有意思的库的分析. 其实,还是希望越来越多的人关注Erlang,使用Er ...
- Oracle存储过程使用总结
1.使用Oracle存储过程查询结果集: 网上写的都是他妈的扯淡!其实一句话就行了,你只要返回一个游标就OK了.具体代码如下: CREATE OR REPLACE PROCEDURE PR_ORDER ...
- 权益保护-知识产权:知识产权(IP)百科
ylbtech-权益保护-知识产权:知识产权(IP)百科 知识产权,也称其为“知识所属权”,指“权利人对其智力劳动所创作的成果和经营活动中的标记.信誉所依法享有的专有权利”,一般只在有限时间内有效.各 ...
- 微信小程序只之全局存储
全局变量 app.globalData 本地缓存 wx.setStorageSync(KEY,DATA) wx.getStorageSync(KEY) wx.getStorageInfoSync wx ...
- proc文件系统详解(原创)
Linux系统上的/proc目录是一种文件系统,即proc文件系统.与其它常见的文件系统不同的是,/proc是一种伪文件系统(也即虚拟文件系统),存储的是当前内核运行状态的一系列特殊文件,用户可以通过 ...