How can I fix pip install error: 'EnvironmentError: [Errno 42] Illegal byte sequence'?

ぐ巨炮叔叔 提交于 2020-03-01 06:59:37

问题


I am trying to download kivy module using pip.

When I run the pip install command, I got an error: Could not install packages due to an EnvironmentError: [Errno 42] Illegal byte sequence.

I already re-installed python, I am running as an administrator and I also tried to download via the wheel file. All of the above causes the same environment error.


回答1:


There seems to be a bug in pip https://github.com/pypa/pip/issues/5665. The current workaround is to run the command in silent mode

pip install kivy -q

or

pip install kivy --progress-bar=off



回答2:


pip install kivy -q

(Not a solution, a workaround - This is a bug in displaying progress bar in pip. Above command hides the progress bar while installing)

Solution based on this.



来源:https://stackoverflow.com/questions/53985263/how-can-i-fix-pip-install-error-environmenterror-errno-42-illegal-byte-sequ

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!