标题: [问题] jupyter 环境问题 (ide: vscode)
时间: Tue May 25 14:48:01 2021
问题状况大致如以下截图
https://imgur.com/I8jQ2BU.jpg
https://imgur.com/7rj5s1R.jpg
https://imgur.com/BMumPrL.jpg
可以看到一般.py档是正常运作的
但是执行 jupyter notebook 的时候,vscode右下角会找不到 ipykernel
但我的 ipykernel 应该是已经安装好的了
Install 点下去也是一长串的 Requirement already satisfied
然後,就没有然後了...
爬文爬了两天找不太到什麽有效的解决办法
所以来这里求助各位了 orz
先谢谢各位大大了~
P.S
python 安装透过官网手动安装
(除了勾选自动加入环境变数外 其他下一步大法)
jupyter 透过 pip install jupyter 安装
ipykernel 应该是透过vscode第一次弹出右下角安装的
(过程中也有透过 pip 重新 uninstall install)
没有使用 anaconda,太肥了不想装
这也是为什麽想选用 vscode 的主要原因
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.127.208.168 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1621925283.A.9DA.html
1F:推 fiorentino: 一样是python环境不同的关系 05/25 17:16
2F:→ fiorentino: 你在终端机看到的python版本,根在vscode看到的版本是 05/25 17:18
3F:→ fiorentino: 不同的,你看vscode下方的状态列就有目前版本 05/25 17:18
4F:→ fiorentino: 直接点状态列python版本就可以切换到另一个版本的环境 05/25 17:19
5F:→ fiorentino: ,再重新安装就好了 05/25 17:19
https://imgur.com/NQwcJDt.jpg
https://imgur.com/pDTj8wW.jpg
可是我点开也只有一个环境欸
我也没在workspace另外开虚拟环境
※ 编辑: asd860079 (111.71.215.108 台湾), 05/25/2021 18:43:01
6F:推 lycantrope: system path就没包含jupyter 05/25 19:52
7F:推 a27647535: 我比较好奇的是为什麽不能用右键 05/30 05:52