gpt4 book ai didi

python - 尝试安装libgreader时出错

转载 作者:太空宇宙 更新时间:2023-11-04 06:15:38 26 4
gpt4 key购买 nike

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 $点安装请求
  下载/解压缩请求
    正在下载请求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

创建构建/库/请求

复制request / init.py-> build / lib / requests

复制request / adapters.py-> build / lib / requests

复制request / api.py-> build / lib / requests

复制request / auth.py-> build / lib / requests

复制request / certs.py-> build / lib / requests

复制request / compat.py-> build / lib / requests

复制request / cookies.py-> build / lib / requests

复制request / exceptions.py-> build / lib / requests

复制request / hooks.py-> build / lib / requests

复制request / models.py-> build / lib / requests

复制request / sessions.py-> build / lib / requests

复制request / status_codes.py-> build / lib / requests

复制request / structures.py-> build / lib / requests

复制request / utils.py-> build / lib / requests

创建构建/库/请求/包

复制请求/程序包/init.py->构建/库/请求/程序包

创建build / lib / requests / packages / charade

复制request / packages / charade / init.py-> build / lib / requests / packages / charade

复制请求/程序包/charade/big5freq.py->构建/ lib /请求/程序包/ charade

复制请求/程序包/charade/big5prober.py->构建/ lib / requests /程序包/ charade

复制request / packages / charade / chardistribution.py-> build / lib / requests / packages / charade

复制请求/包/charade/charsetgroupprober.py->构建/库/请求/包/ charade

复制请求/包/charade/charsetprober.py->构建/库/请求/包/ charade

复制request / packages / charade / codingstatemachine.py-> build / lib / requests / packages / charade

复制request / packages / charade / compat.py-> build / lib / requests / packages / charade

复制request / packages / charade / constants.py-> build / lib / requests / packages / charade

复制请求/包/charade/cp949prober.py->构建/库/请求/包/ charade

复制请求/包/charade/escprober.py->构建/库/请求/包/ charade

复制请求/包/charade/escsm.py->构建/库/请求/包/ charade

复制请求/包/charade/eucjpprober.py->构建/库/请求/包/ charade

复制请求/包/charade/euckrfreq.py->构建/库/请求/包/ charade

复制请求/包/charade/euckrprober.py->构建/库/请求/包/ charade

复制请求/包/charade/euctwfreq.py->构建/库/请求/包/ charade

复制请求/程序包/charade/euctwprober.py->构建/ lib / requests /程序包/ charade

复制request / packages / charade / gb2312freq.py-> build / lib / requests / packages / charade

复制request / packages / charade / gb2312prober.py-> build / lib / requests / packages / charade

复制请求/包/charade/hebrewprober.py->构建/库/请求/包/ charade

复制请求/包/charade/jisfreq.py->构建/库/请求/包/ charade

复制request / packages / charade / jpcntx.py-> build / lib / requests / packages / charade

复制request / packages / charade / langbulgarianmodel.py-> build / lib / requests / packages / charade

复制request / packages / charade / langcyrillicmodel.py-> build / lib / requests / packages / charade

复制request / packages / charade / langgreekmodel.py-> build / lib / requests / packages / charade

复制request / packages / charade / langhebrewmodel.py-> build / lib / requests / packages / charade

复制request / packages / charade / langhungarianmodel.py-> build / lib / requests / packages / charade

复制request / packages / charade / langthaimodel.py-> build / lib / requests / packages / charade

复制请求/包/charade/latin1prober.py->构建/库/请求/包/ charade

复制请求/程序包/charade/mbcharsetprober.py->构建/ lib / requests /程序包/ charade

复制请求/包/charade/mbcsgroupprober.py->构建/ lib / requests /包/ charade

复制请求/包/charade/mbcssm.py->构建/库/请求/包/ charade

复制请求/包/charade/sbcharsetprober.py->构建/库/请求/包/ charade

复制请求/程序包/charade/sbcsgroupprober.py->构建/ lib /请求/程序包/ charade

复制请求/程序包/charade/sjisprober.py->构建/ lib / requests /程序包/ charade

复制request / packages / charade / universaldetector.py-> build / lib / requests / packages / charade

复制request / packages / charade / utf8prober.py-> build / lib / requests / packages / charade

创建build / lib / requests / packages / urllib3

复制请求/包/urllib3/init.py->构建/库/请求/包/ urllib3

复制request / packages / urllib3 / _collections.py-> build / lib / requests / packages / urllib3

复制请求/包/urllib3/connectionpool.py->构建/库/请求/包/ urllib3

复制request / packages / urllib3 / exceptions.py-> build / lib / requests / packages / urllib3

复制request / packages / urllib3 / filepost.py-> build / lib / requests / packages / urllib3

复制request / packages / urllib3 / poolmanager.py-> build / lib / requests / packages / urllib3

复制request / packages / urllib3 / request.py-> build / lib / requests / packages / urllib3

复制request / packages / urllib3 / response.py-> build / lib / requests / packages / urllib3

复制请求/包/urllib3/util.py->构建/库/请求/包/ urllib3

创建build / lib / requests / packages / urllib3 / packages

复制请求/包/urllib3/packages/init.py->构建/ lib / requests / packages / urllib3 / packages

复制请求/程序包/ urllib3 /程序包/ordered_dict.py->构建/ lib / requests /程序包/ urllib3 /程序包

复制请求/程序包/urllib3/packages/six.py->构建/ lib / requests /程序包/ urllib3 / packages

创建build / lib / requests / packages / urllib3 / packages / ssl_match_hostname

复制请求/软件包/urllib3/packages/ssl_match_hostname/init.py->构建/ lib / requests / packages / urllib3 / packages / ssl_match_hostname

运行egg_info

编写request.egg-info / PKG-INFO

将顶级名称写入request.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”

复制request / 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(file)) .read()。replace('\ r \ n','\ n'),file,'exec'))“安装--record / var / folders / 47 / 1m2qc2sx65gf7zqyzzmdtvc80000gn / T / pip-OPYIXn记录/安装-record.txt-单一版本外部管理失败,错误代码为/ private / var / folders / 47 / 1m2qc2sx65gf7zqyzzmdtvcvc80000gn / T / pip-build-daniruhman / requests中的错误代码1
将完整的日志存储在/Users/daniruhman/Library/Logs/pip.log中
Daniels-MacBook-Pro:〜daniruhman $

最佳答案

好吧,我只是通过查看setup.py进行了确认。
https://github.com/askedrelic/libgreader/blob/master/setup.py

它需要requests库。

只需执行pip install requests

大多数情况下,错误会告诉您很多信息。

关于python - 尝试安装libgreader时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15864846/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com