**

windows安装pyhive:

**

  • 打开cmd,依次输入以下命令:
pip install sasl
pip install thrift
pip install thrift-sasl
pip install sasl
  • 输入pip install sasl 时我就掉入了坑里
 Running setup.py clean for sasl
Failed to build sasl
Installing collected packages: saslRunning setup.py install for sasl ... errorERROR: Command errored out with exit status 1:command: 'D:\Anaconda\new\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\TEMP\\pip-req-build-ylznhdre\\setup.py'"'"'; __file__='"'"'C:\\TEMP\\p
ip-req-build-ylznhdre\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file_
_, '"'"'exec'"'"'))' install --record 'C:\TEMP\pip-record-0h5yrvtx\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Anaconda\new\Include\s
asl'cwd: C:\TEMP\pip-req-build-ylznhdre\Complete output (21 lines):running installrunning buildrunning build_pycreating buildcreating build\lib.win-amd64-3.7creating build\lib.win-amd64-3.7\saslcopying sasl\__init__.py -> build\lib.win-amd64-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.win-amd64-3.7\saslcopying sasl\saslwrapper.h -> build\lib.win-amd64-3.7\saslcopying sasl\saslwrapper.pyx -> build\lib.win-amd64-3.7\saslrunning build_extbuilding 'sasl.saslwrapper' extensionerror: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

在报错信息中,我们可以得知缺少sasl的依赖包gcc。
解决方法就是去官网下载.
注意!!!python的版本需要对应依赖包的版本:比如我的python版本是3.7.3,我需要下载的依赖包版本为cp37。

依赖包下载官网

下载到指定目录下(自己看着放),然后在cmd中切换到该目录,执行:pip install sasl-0.2.1-cp37-cp37m-win_amd64.whl

python下载pyhive包:相关推荐

  1. Python 下载依赖包环境经常失败超时解决方法

    Python 下载依赖包环境经常失败超时解决方法 参考文章: (1)Python 下载依赖包环境经常失败超时解决方法 (2)https://www.cnblogs.com/boonya/p/11909 ...

  2. python下载第三方包失败的解决方案:由于目标计算机积极拒绝,无法连接

    问题1:python网站访问较慢 使用三方镜像进行下载,例如下面使用清华的镜像 pip3 install 第三方包名 -i https://pypi.tuna.tsinghua.edu.cn/simp ...

  3. python下载管理包_python3 package management 包管理 实例

    包是一种组织管理代码的方式,包里面存放的是模块 用于将模块包含在一起的文件夹就是包 包内包含__init__.py标志性文件 定义一个学生类,一个sayhello函数,一个打印语句 #p01.py c ...

  4. python哪里下载import包-【Python实战】模块和包导入详解(import)

    1.模块(module) 1.1 模块定义 通常模块为一个.py文件,其他可作为module的文件类型还有".pyo".".pyc".".pyd&qu ...

  5. python下载包管理器_Python包管理整理:setuptool管理python相关的包

    setuptool管理python相关的包 一.介绍 setuptool管理python相关的包的工具.这些包是zip格式发布,但是后缀一般都是.egg setuptool能解决python包的依赖关 ...

  6. python离线安装pip.whl_20180903 - Python Pip 工具下载whl包与离线安装

    20180903 - Python Pip 工具下载whl包与离线安装 1. 我的Blog 2. 简介信息 摘要:Linux下,python,pip工具离线安装包 Author: andy_yhm@y ...

  7. python的本地包下载地址

    python的本地包下载地址 python本地包下载地址

  8. python安装依赖包经常出错怎么办_Python 下载依赖包环境经常失败超时解决方法...

    人生苦短,我用python!为什么很多人喜欢用python,因为包多呀,各种调包.但是调包有的时候也调的闹心,因为安装包不是失败就是很慢,很影响自己的工作进度,这里给出一个pip快速安装工具包的办法, ...

  9. 群里又会python的吗_自从会了Python在群里斗图就没输过,Python批量下载表情包!...

    原标题:自从会了Python在群里斗图就没输过,Python批量下载表情包! 导语 最近图慌,于是随便写了个表情包批量下载的脚本,没什么技术含量,纯娱乐性质. 让我们愉快地开始吧~ 开发工具 Pyth ...

  10. python下载哪一个安装包_python中正确安装对应版本的包

    python在写机器学习的代码过程中,需要引入如numpy.matpoltlib.pandas等等等.有时候直接pip install+对应的包名并不能正确安装,或者安装后依旧会出现安装不完全的情况. ...

最新文章

  1. 大数据系统软件国家工程研究中心给大家拜年啦!
  2. python综合练习1-- 用户登录
  3. SOL注入——HTTP头部注入(六)
  4. UVa 1639 (期望) Candy
  5. 这部纪录片央视发力了,每一帧都可以当壁纸,BBC也无法超越
  6. 表单reset无法重置hidden的解决方案
  7. Python内置函数(37)——sorted
  8. xshell 登录kail拒绝了密码 已解决
  9. VMware ESXi6.0注入8060阵列卡驱动过程记录
  10. 基于java在线影院订票系统论文
  11. 开宗明义—UEFI介绍 (一)
  12. 有些微信小程序助你提高生活效率!
  13. Python初学者:输入若干整数,输出最大值及其索引
  14. 【译】设计响应式图片的3种解决方法
  15. Vue 实现简单的时间轴 时间进度条
  16. 刷题日记-SQL 查找最晚入职员工的所有信息
  17. C/C++面试高频知识点八股文
  18. 2019年信息安全工程师上午真题及答案解析
  19. 【微信小游戏】游戏性能检测
  20. python 播放本地音乐_python本地音乐播放器

热门文章

  1. idea创建类时自动添加注释
  2. c# winform 浏览器调用chrome内核
  3. construct2游戏设计与制作
  4. Matrix Calculus Reference Links
  5. Kali系统下载Thefatrat太慢怎么办?
  6. aceadmin1.4框架treeview多选改造
  7. ace admin日期控件 中文显示
  8. android如何使用代码截屏,android实现截屏功能代码
  9. 宠物管理系统mysql_基于java+MySQL的宠物管理系统
  10. HiJson工具(查看Json)