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 ...
随机推荐
- 解决 Flask-sqlalchemy 中文乱码
当在使用 flask-sqlalchemy 操作 mysql 数据库时中文乱码或者直接报错. 解决方法如下: from flask_sqlalchemy import SQLAlchemy db = ...
- web 面试题、简单题、复习题
1. 概述MVC体系结构,各个部分都有那些技术来实现? M即model(模型,bean(domain)层)由javabean或EJB实现:V即view(视图,显示层)由jsp实现:C即controll ...
- 监控mysql 脚本
监控mysql脚本 http://oldboy.blog.51cto.com/2561410/986905
- OPCDAAuto.dll的C#使用方法浅析(转载)
上次研究了.Net版本的OPC API dll,这次我采用OPCDAAuto.dll来介绍使用方法.以下为我的源代码,有详细的注释无需我多言.编译平台:VS2008SP1.WINXP.KEPServe ...
- kali下启动postgresql
1.service postgresql start 2.su postgres 3.psql
- Oray.com花生壳路由器配置注意
当路由器不链接wan口,只链接lan口时,此路由器其实就是当做一个无线交换机使用了,在此种情况下,花生壳登录会失败,因为花生壳本身也认为这设备不是路由器.
- 爬取github上流行的python项目
# -*- coding:utf-8 -*- __author__ = "MuT6 Sch01aR" import requests from pyquery import PyQ ...
- PHP字符串的处理(三)-字符串的输出
1.echo() echo()实际不是一个函数,是一个语言结构,不需要使用括号 <?php $str = "test"; echo $str."<br> ...
- Python 中的进程与 锁
理论知识 操作系统背景知识 顾名思义,进程即正在执行的一个过程.进程是对正在运行程序的一个抽象. 进程的概念起源于操作系统,是操作系统最核心的概念,也是操作系统提供的最古老也是最重要的抽象概念之一.操 ...
- leetcode343
public class Solution { public int IntegerBreak(int n) { ) { ; } ) { ; } var max = int.MinValue; ; i ...