【问题标题】:UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1UnicodeDecodeError:“utf-8”编解码器无法解码位置 1 中的字节 0x8b
【发布时间】:2015-02-15 00:53:12
【问题描述】:

我正在尝试从 github 安装 python 包。每当我尝试安装任何软件包时,都会收到错误“UnicodeDecodeError:'utf-8'编解码器无法解码位置 1 的字节 0x8b:无效的起始字节”。我曾尝试寻找类似问题的答案,但没有运气。我将不胜感激有关此问题的任何帮助。 错误截图链接-https://www.dropbox.com/s/nc2i5cpi5wcyr3q/error%20install.png?dl=0

【问题讨论】:

  • 我在使用 python 请求的库中看到了这一点。 0x8b 来自 gzip 标头:1F 8B 08。有些东西遗漏了这是 gzip 压缩数据这一事实。

标签: python utf-8


【解决方案1】:

您不能使用以下方法安装软件包:

pip install https://github.com/Theano/Theano

你应该使用:

pip install git+git://github.com/Theano/Theano.git

如果你想从 Github 安装。如果你想从 PyPI 安装包,你应该使用:

pip install Theano

【讨论】:

  • 使用的安装方法与“stackoverflow.com/questions/7322334/…”中提到的相同,我之前安装成功,但现在无法正常工作。我之前应该提到的一件事是我使用的是 anaconda 2.1 版。
猜你喜欢
  • 2017-05-03
  • 1970-01-01
  • 2019-05-07
  • 1970-01-01
  • 2017-09-27
  • 1970-01-01
  • 2017-11-23
  • 2019-08-02
  • 2014-08-29
相关资源
最近更新 更多