pip - Kivy 安装和 UnicodeDecodeError
问题描述
我正在尝试在我的 Windows 10 波兰语中安装 Kivy。Python 3.8 PIP 19.3.1
当我迈出一步时:
python -m virtualenv kivy_venv
我收到错误:
C:\Users\Paweł>python -m virtualenv kivy_venv
Using base prefix 'C:\\Python\\Python38-32'
New python executable in C:\Users\Paweł\kivy_venv\Scripts\python.exe
Installing setuptools, pip, wheel...
done.
Traceback (most recent call last):
File "C:\Python\Python38-32\lib\site-packages\virtualenv.py", line 939, in call_subprocess
line = line.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 42: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python\Python38-32\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python\Python38-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python\Python38-32\lib\site-packages\virtualenv.py", line 2634, in <module>
main()
File "C:\Python\Python38-32\lib\site-packages\virtualenv.py", line 860, in main
create_environment(
File "C:\Python\Python38-32\lib\site-packages\virtualenv.py", line 1179, in create_environment
install_wheel(to_install, py_executable, search_dirs, download=download)
File "C:\Python\Python38-32\lib\site-packages\virtualenv.py", line 1023, in install_wheel
_install_wheel_with_search_dir(download, project_names, py_executable, search_dirs)
File "C:\Python\Python38-32\lib\site-packages\virtualenv.py", line 1116, in _install_wheel_with_search_dir
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=script)
File "C:\Python\Python38-32\lib\site-packages\virtualenv.py", line 941, in call_subprocess
line = line.decode(fs_encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 42: invalid start byte
我找不到这个版本的 python 或 pip 的解决方案,这就是我寻求帮助的原因。如果您有任何想法,请告诉我。谢谢
解决方案
查找解决方案 控制面板区域设置 Beta:Use Unicode UTF-8 for global language support 必须打勾。 使用 Unicode UTF-8
推荐阅读
- php - Yii2:在 find()->where() 方法中排序
- android - 使用 Bitrise 安装-missing-android-tools@2.1.1(退出代码:1)
- domain-driven-design - 具有复合关系的域的 DDD
- c++ - 我想做一棵比 st_tree 更好的树
- c# - 我怎样才能保持原来的速度,但也能够改变一个新的速度?
- mysql - 多个帐户的总和值
- c# - 如何使 WCF 服务同时接受 JSON 和 XML 请求?
- python - 我无法在 Windows 10 命令提示符上安装 sklearn、numpy 和 scipy 以在 Python 3.6 上使用
- c - 如何从进程内存映像创建 ELF 可执行文件
- java - Firestore - 可能的 GeoQuery 解决方法