简体   繁体   English

没有用于在 PyCharm 中添加 WSL python 解释器的菜单

[英]No menu for adding WSL python interpreter in PyCharm

I was following this guide from official jetbrains page, until the step 2 comes in the existence.我在 jetbrains 官方页面上遵循本指南,直到第 2 步出现。

In the picture mentioned in that page, has so many options like ssh, wsl, vagrant, docker, etc. In my pycharm (latest 2019.3.4) it only shows 4 options - venv, conda, pipenv and system-interpreter. In the picture mentioned in that page, has so many options like ssh, wsl, vagrant, docker, etc. In my pycharm (latest 2019.3.4) it only shows 4 options - venv, conda, pipenv and system-interpreter.

There is no WSL menu in the add python interpreter dialog.添加 python 解释器对话框中没有 WSL 菜单。

See the below image:见下图:

在此处输入图像描述

Searched web for an hour and found no results that show how to fix it.搜索 web 一个小时,没有找到显示如何修复它的结果。 I started plugin search in the PyCharm if there's an external plugin to do so, but there were no plugin named as WSL.如果有外部插件,我开始在 PyCharm 中搜索插件,但没有名为 WSL 的插件。

I don't know how to setup the WSL interpreter, I have python3.8 installed on my wsl right now.我不知道如何设置 WSL 解释器,我现在在我的 wsl 上安装了 python3.8。

Any help will be appreciated!任何帮助将不胜感激!

I have solved this by我已经解决了这个问题

  • Uninstalling pycharm with history and cache.使用历史记录和缓存卸载 pycharm。
  • Removing folders completely from C:\Users\$user\AppData\Local and C:\Users\hakan\AppData\Roaming\JetBrains andC:\Users\$user\AppData\LocalC:\Users\hakan\AppData\Roaming\JetBrains
  • Clean re-install of pycharm清洁重新安装 pycharm
  • WSL interpreter option shows up as normal WSL 解释器选项正常显示
  • Ideavim is creating a conflict I guess.我猜 Ideavim 正在制造冲突。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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