简体   繁体   English

python2.7 pip install EnvironmentError Illega字节序列

[英]python2.7 pip install EnvironmentError Illega byte sequence

I have an error at pip install pyinstaller 我在pip install pyinstaller

Cmd quote: Cmd报价:

Microsoft Windows Version 6.3.9600 20 13 Microsoft Corporation. Microsoft Windows版本6.3.9600 20 13 Microsoft Corporation。 All rights reserved. 版权所有。

C:\\WINDOWS\\system32>pip install pyinstaller Collecting pyinstaller C:\\ WINDOWS \\ system32> pip install pyinstaller收集pyinstaller
Downloading https://files.pythonhosted.org/packages/3c/86/909a8c35c5471919b3854c01f43843d9b5aed0e9948b63e560010f7f3429/PyInstaller-3.3.1.tar.gz (3.5MB) 正在下载https://files.pythonhosted.org/packages/3c/86/909a8c35c5471919b3854c01f43843d9b5aed0e9948b63e560010f7f3429/PyInstaller-3.3.1.tar.gz(3.5MB

1% |Could not install packages due to an EnvironmentError: [Errno 42] Illega l byte sequence 1%|由于环境错误而无法安装软件包:[Errno 42] Ilega l字节序列

I use python2.7 and Windows8: 我使用python2.7和Windows8:

Python 2.7.12 |Anaconda 4.2.0 (64-bit)| Python 2.7.12 | Anaconda 4.2.0(64位)| (default, Jun 29 2016, 11:07:13) [MSC v. 1500 64 bit (AMD64)] on win32 (预设为2016年6月29日11:07:13)[win32的MSC v.1500 64 bit(AMD64)]

I tried to check what cause the problem all across the internet without success. 我试图检查是什么原因导致整个互联网出现问题,但没有成功。

  • it happend to me also at pip install py2exe command 它也发生在pip install py2exe命令中
  • it doesn't happand at simple package like pip install clock (simple clock package from githab;just to check pip working) 它不会像pip install clock这样的简单包发生作用(来自githab的简单时钟包;只是为了检查pip的工作情况)

I wanted to make a virtual enviroment but pip install virtualenv gave me the same problem. 我想制作一个虚拟环境,但是pip install virtualenv给了我同样的问题。 I think that finally I succeed to install virtualenv by the command: 我认为最终我通过命令成功安装了virtualenv:

pip install https://github.com/pypa/virtualenv/tarball/master

(but I not sure because all of my tries) (但我不确定,因为我尝试过所有)

  • I created new environment but still I couldn't install pyinstaller pack and I got the same error 我创建了新环境,但仍然无法安装pyinstaller pack,但遇到了相同的错误
  • on the new env. 在新环境中 I get the same EnvironmentError at pip install clock command (the simple pack, just to check pip). 我在pip install clock命令(简单的包,只是为了检查pip)上得到了相同的EnvironmentError

So maybe something in communication from pip to my computer isn't correct.. maybe my programs need update? 所以也许从点子到我的计算机的通讯不正确..也许我的程序需要更新? I updated pip to last version. 我已将点更新为最新版本。 What do you recommend? 您有什么推荐的吗?

I put command in the new environment that I made: 我将命令放置在新创建的环境中:

pip install --upgrade pip==10.0.1

and I installed the older version of pip 我安装了旧版本的pip

that way I successfully installed PyInstaller pack!! 这样我就成功安装了PyInstaller包!

for everyone know :) 对于大家都知道:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM