windows11,无显卡
之前已经下载了anaconda,在其中创建了一个虚拟环境,下载了pytorch2.0。这次主要是跟着视频下载d2l库,来查看课程代码。
直接使用pip install d2l安装报错:module 'pkgutil' has no attribute 'ImpImporter'
参考链接:python 3.12 安装D2L包时报错:module 'pkgutil' has no attribute 'ImpImporter' - 知乎
到第三步就成功安装了,之后cd进入到本地的d2l-zh文件夹,输入jupyter notebook即可查看代码。
(pytorch_cpu) C:\Users\86150>d:
(pytorch_cpu) D:\BroswerDownload\d2l-1.0.3\d2l-1.0.3>cd D:\BroswerDownload\d2l-zh
(pytorch_cpu) D:\BroswerDownload\d2l-zh>jupyter notebook