python安装问题
-- 使用pip install 命令安装插件时出现如下提示:
(命令python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gitlab==1.0.2)
(环境:Windows 10)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa2 in position 202: illegal multibyte sequence [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
原因:是因为 'gbk' 编码无法解码字节 0xa2,导致出现非法的多字节序列。
解决方式:在环境变量中增加配置:PYTHONUTF8,重启pycharm后,再次安装成功