安装pyhive还需要安装其他依赖包

pip install sasl
pip install thrift
pip install thrift-sasl
pip install PyHive

安装sasl遇到的问题

Collecting saslUsing cached https://files.pythonhosted.org/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz
Requirement already satisfied: six in /Users/jiang/.local/lib/python3.7/site-packages (from sasl) (1.15.0)
Building wheels for collected packages: saslRunning setup.py bdist_wheel for sasl ... errorComplete output from command /Users/jiang/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/dh/lz2xjpzn5wqdhp6xtbrng_z00000gn/T/pip-install-ykoaejda/sasl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/dh/lz2xjpzn5wqdhp6xtbrng_z00000gn/T/pip-wheel-nihe_8c0 --python-tag cp37:running bdist_wheelrunning buildrunning build_pycreating buildcreating build/lib.macosx-10.7-x86_64-3.7creating build/lib.macosx-10.7-x86_64-3.7/saslcopying sasl/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/saslrunning egg_infowriting sasl.egg-info/PKG-INFOwriting dependency_links to sasl.egg-info/dependency_links.txtwriting requirements to sasl.egg-info/requires.txtwriting top-level names to sasl.egg-info/top_level.txtreading manifest file 'sasl.egg-info/SOURCES.txt'reading manifest template 'MANIFEST.in'writing manifest file 'sasl.egg-info/SOURCES.txt'copying sasl/saslwrapper.cpp -> build/lib.macosx-10.7-x86_64-3.7/saslcopying sasl/saslwrapper.h -> build/lib.macosx-10.7-x86_64-3.7/saslcopying sasl/saslwrapper.pyx -> build/lib.macosx-10.7-x86_64-3.7/saslrunning build_extbuilding 'sasl.saslwrapper' extensioncreating build/temp.macosx-10.7-x86_64-3.7creating build/temp.macosx-10.7-x86_64-3.7/saslgcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/jiang/anaconda3/include -arch x86_64 -I/Users/jiang/anaconda3/include -arch x86_64 -Isasl -I/Users/jiang/anaconda3/include/python3.7m -c sasl/saslwrapper.cpp -o build/temp.macosx-10.7-x86_64-3.7/sasl/saslwrapper.oclang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]sasl/saslwrapper.cpp:249:10: fatal error: 'string' file not found#include <string>^~~~~~~~1 error generated.error: command 'gcc' failed with exit status 1----------------------------------------Failed building wheel for saslRunning setup.py clean for sasl
Failed to build sasl
Installing collected packages: saslRunning setup.py install for sasl ... errorComplete output from command /Users/jiang/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/dh/lz2xjpzn5wqdhp6xtbrng_z00000gn/T/pip-install-ykoaejda/sasl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/dh/lz2xjpzn5wqdhp6xtbrng_z00000gn/T/pip-record-nkav6rd6/install-record.txt --single-version-externally-managed --compile:running installrunning buildrunning build_pycreating buildcreating build/lib.macosx-10.7-x86_64-3.7creating build/lib.macosx-10.7-x86_64-3.7/saslcopying sasl/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/saslrunning egg_infowriting sasl.egg-info/PKG-INFOwriting dependency_links to sasl.egg-info/dependency_links.txtwriting requirements to sasl.egg-info/requires.txtwriting top-level names to sasl.egg-info/top_level.txtreading manifest file 'sasl.egg-info/SOURCES.txt'reading manifest template 'MANIFEST.in'writing manifest file 'sasl.egg-info/SOURCES.txt'copying sasl/saslwrapper.cpp -> build/lib.macosx-10.7-x86_64-3.7/saslcopying sasl/saslwrapper.h -> build/lib.macosx-10.7-x86_64-3.7/saslcopying sasl/saslwrapper.pyx -> build/lib.macosx-10.7-x86_64-3.7/saslrunning build_extbuilding 'sasl.saslwrapper' extensioncreating build/temp.macosx-10.7-x86_64-3.7creating build/temp.macosx-10.7-x86_64-3.7/saslgcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/jiang/anaconda3/include -arch x86_64 -I/Users/jiang/anaconda3/include -arch x86_64 -Isasl -I/Users/jiang/anaconda3/include/python3.7m -c sasl/saslwrapper.cpp -o build/temp.macosx-10.7-x86_64-3.7/sasl/saslwrapper.oclang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]sasl/saslwrapper.cpp:249:10: fatal error: 'string' file not found#include <string>^~~~~~~~1 error generated.error: command 'gcc' failed with exit status 1

解决办法,亲测有效

pip install git+https://github.com/JoshRosen/python-sasl.git@fix-build-with-newer-xcode

安装结果

Collecting git+https://github.com/JoshRosen/python-sasl.git@fix-build-with-newer-xcodeCloning https://github.com/JoshRosen/python-sasl.git (to revision fix-build-with-newer-xcode) to /private/var/folders/dh/lz2xjpzn5wqdhp6xtbrng_z00000gn/T/pip-req-build-7idssui_
Requirement already satisfied: six in /Users/jiang/.local/lib/python3.7/site-packages (from sasl==0.2.1) (1.15.0)
Building wheels for collected packages: saslRunning setup.py bdist_wheel for sasl ... doneStored in directory: /private/var/folders/dh/lz2xjpzn5wqdhp6xtbrng_z00000gn/T/pip-ephem-wheel-cache-ghqp6fm8/wheels/d6/9a/bf/25ab3aaf3fb90796e50660cc6188c30336a80736a3729c56ae
Successfully built sasl
Installing collected packages: sasl
Successfully installed sasl-0.2.1

安装pyHive报错相关推荐

  1. pycharm安装pytorch报错 提示系列问题 torch 包找不到因为pip版本低,结果升级了pip从19.3到20.2 4又提示高版不支持torch安装

    pycharm安装pytorch报错 提示系列问题  torch 包找不到因为pip版本低,结果升级了pip从19.3到20.2 4又提示高版不支持torch安装 DEPRECATION: The - ...

  2. anconda安装后命令行中安装tensorflow报错

    现象  anconda安装后命令行中安装tensorflow报错 pip install --upgrade --ignore-installed tensorflow-gpu Building wh ...

  3. Linux安装Apache报错:Cannot find a valid baseurl for repo: base/7/x86_64解决方案

    Linux安装Apache报错:Cannot find a valid baseurl for repo: base/7/x86_64解决方案 参考文章: (1)Linux安装Apache报错:Can ...

  4. CentOS 6安装Oracle报错解决方案

    CentOS 6安装Oracle报错解决方案 参考文章: (1)CentOS 6安装Oracle报错解决方案 (2)https://www.cnblogs.com/lonecloud/p/689568 ...

  5. 解决Mac安装tesserocr报错问题 Failed building wheel for

    解决Mac安装tesserocr报错问题 Failed building wheel for 参考文章: (1)解决Mac安装tesserocr报错问题 Failed building wheel f ...

  6. 记一次用pip安装docker-compose报错及解决方法

    记一次用pip安装docker-compose报错及解决方法 参考文章: (1)记一次用pip安装docker-compose报错及解决方法 (2)https://www.cnblogs.com/fe ...

  7. cmd输入pip报错_安装pip报错:WARNING: Retrying (Retry(total=4,...

    安装pip报错:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) afte ...

  8. 安装yaml报错:ERROR: Cannot uninstall 'PyYAML'.

    安装yaml报错:ERROR: Cannot uninstall 'PyYAML'. 文章目录: 一.错误原因分析 二.最终错误解决方式 一.错误原因分析 1.开始安装 我是一开始安装yaml,使用命 ...

  9. 用pip安装tensorflow报错SyntaxError: invalid syntax

    用pip安装tensorflow报错SyntaxError: invalid syntax 解决办法:直接在cmd中输入安装语句

  10. pip 安装 mysqlclient 报错 Command errored out with exit status 1

    安装mysqlclient报错: ERROR: Command errored out with exit status 1: 'd:\cs\csruanjiananzhuang\python\pyt ...

最新文章

  1. 手机微站webapp
  2. python第二大奇数_python-2.7 – matplotlib,包含奇数个子图
  3. 转:Android中如何修改系统时间(应用程序获得系统权限)
  4. (二)双线性插值python实现
  5. rgb 灰色_金属+RGB+无线,我要买爆这款海盗船VIRTUOSO鉴赏家游戏耳机
  6. 142.4. Gearman
  7. centOS安装openoffice的方法
  8. spring aop实例讲解_【好好面试】手把手调试,教你分析Spring-Aop
  9. Centos7yum源配置PID锁定问题
  10. 《Spring Boot极简教程》第9章 Spring Boot集成Scala混合Java开发
  11. android+自动拨打电话,自动拨打电话 - 好玩的代码
  12. Git服务器更换IP
  13. OSEK和Autosar网络管理的区别和共同点
  14. QtCreator设置代码美化astyle之Artistic
  15. 笔记本电脑打开计算机里面会跳,笔记本电脑为什么闪屏_笔记本电脑闪屏的原因及处理方法...
  16. 知道了我服务器的公网ip,是否可以入侵我的服务器?
  17. 【转载】《武学求真录》和《逝去的武林》及《老拳师的故事》 -3
  18. Android开发之打卡功能
  19. Predefined Shader preprocessor macros //预定义的着色器预处理宏
  20. CF 613C(Necklace-构造法)

热门文章

  1. dataset lfw
  2. abaqus算出来的转角单位是什么_ABAQUS中的单位制是如何规定的
  3. 【408考研计划】计算机组成原理
  4. usb接口多少钱_3分钟搞懂USB
  5. JS打开新窗口的2种方式
  6. 微信公众平台源码分享,把你的生意做到微信里
  7. switchHost工具的使用
  8. 鸢尾花(Iris)数据集
  9. 懂一些数据分析工具,为啥还要考CPDA数据分析师证书?
  10. wbe下载Excel文件Response响应头格式