pip3 install tinyaes
我在安装tinyaes时出现如下报错
报错如:
Exception:
Traceback (most recent call last):
File “e:\python3.6\lib\site-packages\pip\compat_init_.py”, line 73, in console_to_str
return s.decode(sys.stdout.encoding)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb8 in position 36: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “e:\python3.6\lib\site-packages\pip\basecommand.py”, line 215, in main
status = self.run(options, args)
File “e:\python3.6\lib\site-packages\pip\commands\install.py”, line 342, in run
prefix=options.prefix_path,
File “e:\python3.6\lib\site-packages\pip\req\req_set.py”, line 784, in install
**kwargs
File “e:\python3.6\lib\site-packages\pip\req\req_install.py”, line 878, in install
spinner=spinner,
File “e:\python3.6\lib\site-packages\pip\utils_init_.py”, line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File “e:\python3.6\lib\site-packages\pip\compat_init_.py”, line 75, in console_to_str
return s.decode(‘utf_8’)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb8 in position 36: invalid start byte
解决方法:
cmd中执行 chcp 65001
然后在执行pip的模块安装命令
比如我最开始想要下载tinyaes模块
pip3 install tinyaes