简体   繁体   中英

pycharm can't run .py using remote ssh python interpreter on WSL for encoding

I configure my pycharm to use remote ssh python interpreter on the WSL (windows subsystem for linux) in the same computer to run python program. but it seems to encounter encoding problem. I change all the file_encoding to 'utf8', but don't work.

raceback (most recent call last): File "/home/yanhui/anaconda2/lib/python2.7/encodings/ init .py", line 74, in search_function entry = _cache.get(encoding, _unknown) AttributeError: 'NoneType' object has no attribute 'get'

在此输入图像描述

here is pycharm encoding config: 在此输入图像描述

ssh remote interpreter works correctly: 在此输入图像描述

转到Settings-> Tools-> Python Scientific并取消选中“在工具窗口中显示绘图”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM