-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install the package by pip due to some encoding error #2
Comments
I got the same error message when install via pip and python 3.7 |
But it is no use on my computer.....I have used python2.7. |
因为要安装pyautogui,结果要先安装依赖PyGetWindow,然后pip install PyGetWindow报错。 |
|
|
谢谢你的方案,完美解决~ |
excellent solustion, thanks! |
可以使用pip install -e 项目路径,快捷安装 |
why not merge? I see it has some pr to fix the problem. |
我在32位python下用此方法安装pygetwindow版本0.04不行,0.03版本可以 |
When I try to install the package via pip command, it generates the following error message:
Collecting pygetwindow (from pyautogui)
Downloading https://files.pythonhosted.org/packages/f1/54/740939161eb3471e8f775ce9b0fcac0e54c36bf63501e51f2cd7158f587d/PyGetWindow-0.0.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users******\AppData\Local\Temp\pip-install-wflouosi\pygetwindow\setup.py", line 11, in
long_description = fh.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa2 in position 905: illegal multibyte sequence
So I tried to modify the setup.py and change the line 11:
Original:
with open("README.md", "r") as fh: long_description = fh.read()
New:
with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read()
It looks like this change can bypass the issue,
The text was updated successfully, but these errors were encountered: