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 install requests 下载/解包请求 下载 requests-1.2.0.tar.gz (341kB): 341kB 下载 运行 setup.py egg_info 获取包请求
安装收集的包: requests 运行 setup.py install for requests
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
创建构建
创建构建/库
创建构建/库/请求
复制 requests/ init .py -> build/lib/requests
复制 requests/adapters.py -> build/lib/requests
复制 requests/api.py -> build/lib/requests
复制 requests/auth.py -> build/lib/requests
复制 requests/certs.py -> build/lib/requests
复制 requests/compat.py -> build/lib/requests
复制 requests/cookies.py -> build/lib/requests
复制 requests/exceptions.py -> build/lib/requests
复制 requests/hooks.py -> build/lib/requests
复制 requests/models.py -> build/lib/requests
复制 requests/sessions.py -> build/lib/requests
复制 requests/status_codes.py -> build/lib/requests
复制 requests/structures.py -> build/lib/requests
复制 requests/utils.py -> build/lib/requests
创建 build/lib/requests/packages
复制 requests/packages/ init .py -> build/lib/requests/packages
创建 build/lib/requests/packages/charade
复制 requests/packages/charade/ init .py -> build/lib/requests/packages/charade
复制 requests/packages/charade/big5freq.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/big5prober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/chardistribution.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/charsetgroupprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/charsetprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/codingstatemachine.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/compat.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/constants.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/cp949prober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/escprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/escsm.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/eucjpprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/euckrfreq.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/euckrprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/euctwfreq.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/euctwprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/gb2312freq.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/gb2312prober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/hebrewprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/jisfreq.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/jpcntx.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/langbulgarianmodel.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/langcyrillicmodel.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/langgreekmodel.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/langhebrewmodel.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/langhungarianmodel.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/langthaimodel.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/latin1prober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/mbcharsetprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/mbcsgroupprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/mbcssm.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/sbcharsetprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/sbcsgroupprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/sjisprober.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/universaldetector.py -> build/lib/requests/packages/charade
复制 requests/packages/charade/utf8prober.py -> build/lib/requests/packages/charade
创建 build/lib/requests/packages/urllib3
复制 requests/packages/urllib3/ init .py -> build/lib/requests/packages/urllib3
复制 requests/packages/urllib3/_collections.py -> build/lib/requests/packages/urllib3
复制 requests/packages/urllib3/connectionpool.py -> build/lib/requests/packages/urllib3
复制 requests/packages/urllib3/exceptions.py -> build/lib/requests/packages/urllib3
复制 requests/packages/urllib3/filepost.py -> build/lib/requests/packages/urllib3
复制 requests/packages/urllib3/poolmanager.py -> build/lib/requests/packages/urllib3
复制 requests/packages/urllib3/request.py -> build/lib/requests/packages/urllib3
复制 requests/packages/urllib3/response.py -> build/lib/requests/packages/urllib3
复制 requests/packages/urllib3/util.py -> build/lib/requests/packages/urllib3
创建 build/lib/requests/packages/urllib3/packages
复制 requests/packages/urllib3/packages/ init .py -> build/lib/requests/packages/urllib3/packages
复制 requests/packages/urllib3/packages/ordered_dict.py -> build/lib/requests/packages/urllib3/packages
复制 requests/packages/urllib3/packages/six.py -> build/lib/requests/packages/urllib3/packages
创建 build/lib/requests/packages/urllib3/packages/ssl_match_hostname
复制 requests/packages/urllib3/packages/ssl_match_hostname/ init .py -> build/lib/requests/packages/urllib3/packages/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:未找到标准文件“-c”
读取清单文件'requests.egg-info/SOURCES.txt'
阅读清单模板'MANIFEST.in'
编写清单文件'requests.egg-info/SOURCES.txt'
复制 requests/cacert.pem -> build/lib/requests
运行 install_lib
创建 /Library/Python/2.7/site-packages/requests
错误:无法创建“/Library/Python/2.7/site-packages/requests”:权限被拒绝
命令 /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 failed with error code 1 in /private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/requests 存储完整的登录 /Users/daniruhman/Library/日志/pip.log Daniels-MacBook-Pro:~ daniruhman$