pycharm最新2022.3支持基于wsl2.0远程开发,爽歪歪

env

  • window11
  • wsl-2.0
  • pycharm-2022.3

1.install wsl

1.1window11 安装wsl

1.2下载openEuler-22.03/ubuntu(最新版本的py版本比较高)

在store商店搜索wsl

1.3配置pip国内源

[bang@0201221459-NB ~]$ cat ~/.pip/pip.conf
[global]
trusted-host=mirrors.aliyun.com
index-url=http://mirrors.aliyun.com/pypi/simple/

[install]
disable-pip-version-check = true
timeout = 6000

[bang@0201221459-NB ~]$ python3 -V
Python 3.9.9

2.using-wsl-as-a-remote-interpreter

2.1下载pycharm 2022.3版本

2.2设置项目python解释器从wsl

link