Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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'

enter image description here

here is pycharm encoding config: enter image description here

ssh remote interpreter works correctly: enter image description here

like image 490
Yanhui Zhao Avatar asked Jan 18 '26 05:01

Yanhui Zhao


1 Answers

go to the Settings->Tools->Python Scientific and uncheck "Show plots in toolwindow"

like image 57
Mayank Parasar Avatar answered Jan 19 '26 19:01

Mayank Parasar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!