Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu VScode找不到ipykernel #12

Open
ZyanNo1 opened this issue Sep 24, 2024 · 1 comment
Open

Ubuntu VScode找不到ipykernel #12

ZyanNo1 opened this issue Sep 24, 2024 · 1 comment

Comments

@ZyanNo1
Copy link

ZyanNo1 commented Sep 24, 2024

vscode连接wsl
在ubuntu中已经配置好python环境并安装ipykernel,且.py文件也可以正常运行,但是.ipynb中的py程序无法运行
屏幕截图 2024-09-24 205023
屏幕截图 2024-09-24 204745

@ZyanNo1 ZyanNo1 changed the title VScode找不到ipykernel VScode找不到ipykernel #question Sep 24, 2024
@ZyanNo1 ZyanNo1 changed the title VScode找不到ipykernel #question VScode找不到ipykernel Sep 24, 2024
@Tenth-crew Tenth-crew changed the title VScode找不到ipykernel Ubuntu VScode找不到ipykernel Sep 24, 2024
@Tenth-crew
Copy link
Collaborator

Tenth-crew commented Sep 24, 2024

首先说明助教是在win11下进行的实验,无法对解决方法进行验证,使用ubuntu需要自己面对更多的问题,一些东西助教爱莫能助。但下面我提供一个解决思路,参考链接:https://stackoverflow.com/questions/77604621/run-the-following-command-to-install-ipykernel-into-the-python-environment

  1. 首先通过python3 -m pip list命令检查自己是否安装了ipykernel这个包
  2. 如果存在这个包,你需要检查自己的jupyter运行的python内核是在哪个python环境下,确保jupyter运行的内核已经有了ipykernel这个包
  3. 如果不存在这个包,在jupyter运行的环境中使用python3 -m pip install ipykernel命令来安装这个包
    所以比较重要的是,确认自己jupyter运行的环境。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants