python pip 安装tornado报错UnicodeEncodeError: 'xxx' codec can't encode character u'\u258a' in positiopython pip 安装tornado报错UnicodeEncodeError: 'xxx' codec can't encode character u'\u258a' in positiopython pip 安装tornado报错UnicodeEncodeError: 'xxx' codec can't encode character u'\u258a' in positiopython pip 安装tornado报错UnicodeEncodeError: 'xxx' codec can't encode character u'\u258a' in positio

python pip 安装tornado报错UnicodeEncodeError: 'xxx' codec can't encode character u'\u258a' in positio

使用pip install tornado  安装报错以上信息

解决办法:在python安装 Python27\Lib\site-packages 建一个文件sitecustomize.py 。

py文件中写入以下代码:

import sys
sys.setdefaultencoding('utf-8')

然后在重新执行即可。

相关文章:

  • 2022-02-27
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
猜你喜欢
  • 2021-09-25
  • 2022-03-02
  • 2021-10-24
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案