Anaconda出现Fatal Python error: init_sys_streams: can‘t initialize sys standard streams错误

今天在激活conda环境时出现了这样一个错误:

(base) C:\Users\hhh>conda activate D:\pychram_Project\test\env
Fatal Python error: init_sys_streams: can't initialize sys standard streams
LookupError: unknown encoding: 65001

Current thread 0x000024a0 (most recent call first):

解决办法为:输入命令

(base) C:\Users\hhh>set pythonioencoding=utf-8

再次激活即可

你可能感兴趣的:(python,开发语言)