Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python UnicodeDecodeError:&x27;utf-8';编解码器可以';t解码位置1中的字节0x8b_Python_Utf 8 - Fatal编程技术网

Python UnicodeDecodeError:&x27;utf-8';编解码器可以';t解码位置1中的字节0x8b

Python UnicodeDecodeError:&x27;utf-8';编解码器可以';t解码位置1中的字节0x8b,python,utf-8,Python,Utf 8,我正在尝试从github安装python包。每当我尝试安装任何软件包时,都会出现错误“UnicodeDecodeError:'utf-8'编解码器无法解码位置1:无效起始字节中的字节0x8b”。我曾试图寻找类似问题的答案,但没有成功。我将非常感谢在这个问题上提供的任何帮助。 错误屏幕截图链接-无法使用以下方法安装程序包: pip install https://github.com/Theano/Theano 相反,您应该使用: pip install git+git://github.com

我正在尝试从github安装python包。每当我尝试安装任何软件包时,都会出现错误“UnicodeDecodeError:'utf-8'编解码器无法解码位置1:无效起始字节中的字节0x8b”。我曾试图寻找类似问题的答案,但没有成功。我将非常感谢在这个问题上提供的任何帮助。
错误屏幕截图链接-

无法使用以下方法安装程序包:

pip install https://github.com/Theano/Theano
相反,您应该使用:

pip install git+git://github.com/Theano/Theano.git
pip install Theano
如果您想从Github安装。如果要从PyPI安装软件包,应使用:

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

使用的安装方法与“”中提到的相同,我以前成功地安装了它,但现在它不起作用。我应该在前面提到的一件事是,我正在使用anaconda 2.1版。我在使用python请求的库中看到了这一点。
0x8b
来自gzip头:
1F 8B 08
。这是gzip压缩的数据,但缺少了一个事实。