当在命令行中执行virtualenv venv时报此错误:'utf-8' codec can't decode byte 0xd5 in position 38: invalid continuation by

时间:2022-02-18 13:35:32

1、windows中安装虚拟环境virtualenv时, 当在命令行中执行virtualenv venv时报此错误:'utf-8' codec can't decode byte 0xd5 in position 38: invalid continuation by

可以参考以下方法:

    可以按照以下路径(此路径按照你电脑上的路径查找)找到virtualenv.py文件

         当在命令行中执行virtualenv venv时报此错误:'utf-8' codec can't decode byte 0xd5 in position 38: invalid continuation by

    找到virtualenv.py文件选择适合的打开方式,找到以下代码段,把解码格式改成‘gbk’,并保存。

    当在命令行中执行virtualenv venv时报此错误:'utf-8' codec can't decode byte 0xd5 in position 38: invalid continuation by