Daniels-MacBook-Pro:~ daniruhman$ pip install libgreader
Downloading/unpacking libgreader
Running setup.py egg_info for package libgreader
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/libgreader/setup.py", line 3, in <module>
import libgreader
File "libgreader/__init__.py", line 11, in <module>
from .googlereader import GoogleReader
File "libgreader/googlereader.py", line 11, in <module>
from .items import SpecialFeed, Item, Category, Feed
File "libgreader/items.py", line 3, in <module>
from requests.compat import quote
ImportError: No module named requests.compat
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/libgreader/setup.py", line 3, in <module>
import libgreader
File "libgreader/__init__.py", line 11, in <module>
from .googlereader import GoogleReader
File "libgreader/googlereader.py", line 11, in <module>
from .items import SpecialFeed, Item, Category, Feed
File "libgreader/items.py", line 3, in <module>
from requests.compat import quote
ImportError: No module named requests.compat
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/libgreader
Storing complete log in /Users/daniruhman/Library/Logs/pip.log
Daniels-MacBook-Pro:~ daniruhman$ sudo pip install libgreader
Password:
Downloading/unpacking libgreader
Running setup.py egg_info for package libgreader
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/tmp/pip-build-root/libgreader/setup.py", line 3, in <module>
import libgreader
File "libgreader/__init__.py", line 11, in <module>
from .googlereader import GoogleReader
File "libgreader/googlereader.py", line 11, in <module>
from .items import SpecialFeed, Item, Category, Feed
File "libgreader/items.py", line 3, in <module>
from requests.compat import quote
ImportError: No module named requests.compat
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/tmp/pip-build-root/libgreader/setup.py", line 3, in <module>
import libgreader
File "libgreader/__init__.py", line 11, in <module>
from .googlereader import GoogleReader
File "libgreader/googlereader.py", line 11, in <module>
from .items import SpecialFeed, Item, Category, Feed
File "libgreader/items.py", line 3, in <module>
from requests.compat import quote
ImportError: No module named requests.compat
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip-build-root/libgreader
Storing complete log in /Users/daniruhman/Library/Logs/pip.log
Daniels-MacBook-Pro:~ daniruhman$
有什么想法吗?
尝试了pip安装请求:
Daniels-MacBook-Pro:~daniruhman $ pip安装请求 下载/解压缩请求 正在下载请求-1.2.0.tar.gz(341kB):已下载341kB 为包请求运行setup.py egg_info
安装收集的包:请求 为请求运行setup.py install
error: could not create '/Library/Python/2.7/site-packages/requests': Permission denied
Complete output from command /usr/bin/python -c "import setuptools;__file__='/private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/requests/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-OPYIXn-record/install-record.txt --single-version-externally-managed:
running install
运行构建
运行build_py
创建构建
创建build / lib
创建build / lib / requests
复制请求/ init .py - &gt;建立/ LIB /请求
复制requests / adapters.py - &gt;建立/ LIB /请求
复制请求/ api.py - &gt;建立/ LIB /请求
复制requests / auth.py - &gt;建立/ LIB /请求
复制请求/ certs.py - &gt;建立/ LIB /请求
复制requests / compat.py - &gt;建立/ LIB /请求
复制requests / cookies.py - &gt;建立/ LIB /请求
复制requests / exceptions.py - &gt;建立/ LIB /请求
复制请求/ hooks.py - &gt;建立/ LIB /请求
复制requests / models.py - &gt;建立/ LIB /请求
复制requests / sessions.py - &gt;建立/ LIB /请求
复制requests / status_codes.py - &gt;建立/ LIB /请求
复制requests / structures.py - &gt;建立/ LIB /请求
复制requests / utils.py - &gt;建立/ LIB /请求
创建build / lib / requests / packages
复制请求/包/ init .py - &gt;建立/ LIB /请求/包
创建build / lib / requests / packages / charade
复制请求/包/ charade / init .py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / big5freq.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / big5prober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / chardistribution.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / charsetgroupprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / charsetprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / codingstatemachine.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / compat.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / constants.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / cp949prober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/ packages / charade / escprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/ packages / charade / escsm.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / eucjpprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / euckrfreq.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / euckrprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / euctwfreq.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / euctwprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / gb2312freq.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / gb2312prober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / hebrewprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / jisfreq.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / jpcntx.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / langbulgarianmodel.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / langcyrillicmodel.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / langgreekmodel.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / langhebrewmodel.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / langhungarianmodel.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / langthaimodel.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / latin1prober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / mbcharsetprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / mbcsgroupprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / mbcssm.py - &gt;建立/ LIB /请求/包/字谜
复制requests / packages / charade / sbcharsetprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / sbcsgroupprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/ packages / charade / sjisprober.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / universaldetector.py - &gt;建立/ LIB /请求/包/字谜
复制请求/包/ charade / utf8prober.py - &gt;建立/ LIB /请求/包/字谜
创建build / lib / requests / packages / urllib3
复制requests / packages / urllib3 / init .py - &gt;建立/ LIB /请求/包/ urllib3
复制requests / packages / urllib3 / _collections.py - &gt;建立/ LIB /请求/包/ urllib3
复制请求/ packages / urllib3 / connectionpool.py - &gt;建立/ LIB /请求/包/ urllib3
复制requests / packages / urllib3 / exceptions.py - &gt;建立/ LIB /请求/包/ urllib3
复制requests / packages / urllib3 / filepost.py - &gt;建立/ LIB /请求/包/ urllib3
复制requests / packages / urllib3 / poolmanager.py - &gt;建立/ LIB /请求/包/ urllib3
复制requests / packages / urllib3 / request.py - &gt;建立/ LIB /请求/包/ urllib3
复制requests / packages / urllib3 / response.py - &gt;建立/ LIB /请求/包/ urllib3
复制requests / packages / urllib3 / util.py - &gt;建立/ LIB /请求/包/ urllib3
创建build / lib / requests / packages / urllib3 / packages
复制requests / packages / urllib3 / packages / init .py - &gt;建立/ LIB /请求/包/ urllib3 /包
复制requests / packages / urllib3 / packages / ordered_dict.py - &gt;建立/ LIB /请求/包/ urllib3 /包
复制requests / packages / urllib3 / packages / six.py - &gt;建立/ LIB /请求/包/ urllib3 /包
创建build / lib / requests / packages / urllib3 / packages / ssl_match_hostname
复制requests / packages / urllib3 / packages / ssl_match_hostname / init .py - &gt;建立/ LIB /请求/包/ urllib3 /包/ ssl_match_hostname
运行egg_info
撰写requests.egg-info / PKG-INFO
将顶级名称写入requests.egg-info / top_level.txt
将dependency_links写入requests.egg-info / dependency_links.txt
警告:manifest_maker:标准文件&#39; -c&#39;找不到
阅读清单文件&#39; requests.egg-info / SOURCES.txt&#39;
阅读清单模板&#39; MANIFEST.in&#39;
撰写清单文件&#39; requests.egg-info / SOURCES.txt&#39;
复制请求/ cacert.pem - &gt;建立/ LIB /请求
运行install_lib
创建/Library/Python/2.7/site-packages/requests
错误:无法创建&#39; /Library/Python/2.7/site-packages/requests':权限被拒绝
命令/ usr / bin / python -c&#34;导入setuptools; 文件 =&#39; / private / var / folders / 47 / 1m2qc2sx65gf7zqyzzmdtvc80000gn / T / pip-build-daniruhman /requests/setup.py' ;;exec(compile(open(file).read().replace('\r\n' ;,&#39; \ n& #39;),文件,&#39; exec&#39;))&#34;安装--record /var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-OPYIXn-record/install-record.txt --single-version-external-managed失败,错误代码为1 / private / var / folders / 47 / 1m2qc2sx65gf7zqyzzmdtvc80000gn / T / PIP-集结daniruhman /请求 存储完整的登录/Users/daniruhman/Library/Logs/pip.log Daniels-MacBook-Pro:~daniruhman $
答案 0 :(得分:1)
好的,我刚刚通过查看setup.py
确认了。
https://github.com/askedrelic/libgreader/blob/master/setup.py
它需要requests
库。
只需pip install requests
。
大部分时间错误都会告诉你很多。