首页 > 解决方案 > 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 的解决方案,这就是我寻求帮助的原因。如果您有任何想法,请告诉我。谢谢

标签: pipkivyvirtualenv

解决方案


查找解决方案 控制面板区域设置 Beta:Use Unicode UTF-8 for global language support 必须打勾。 使用 Unicode UTF-8


推荐阅读