学习李沐的课程中的问题记录

 (50条消息) 李沐《动手学深度学习》d2l——安装和使用_梁小憨憨的博客-CSDN博客_d2l


 Python安装 d2l 库过程中出现“ Failed building wheel for xxx”的解决办法:
出现原因:缺失相应的whl文件。
解决办法:下载并安装对应的whl文件。

WARNING: The script f2py.exe is installed in ‘C:\Users\linji\AppData\Roaming\Python\Python36\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
————————————————
版权声明:本文为CSDN博主「林几瑕」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_43582443/article/details/111511595


数据操作

pycharm怎么打开ipynb

jupyter 更换文件路径

(50条消息) jupyter 更换文件路径_小白tree的博客-CSDN博客_jupyter文件路径

jupyter不能随意的切换文件

按照博客更改后,保留如下错误

(50条消息) jupyter notebook报错:Bad file descriptor(C:\ci\zeromq_1602704446950\work\src\epoll.cpp:100)_多吃青菜长的高的博客-CSDN博客

pip install pyzmq==19.0.2 --user
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyzmq==19.0.2
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b8/3d/3c10e21c485e7f4f668563a33aa770488b8ca37647e0dd2c64b37d52bd12/pyzmq-19.0.2-cp39-cp39-win_amd64.whl (695 kB)
     ---------------------------------------- 695.1/695.1 kB 481.6 kB/s eta 0:00:00
Installing collected packages: pyzmq
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.2.2 requires pyqt5<5.13, which is not installed.
spyder 5.2.2 requires pyqtwebengine<5.13, which is not installed.
spyder-kernels 2.2.1 requires pyzmq>=22.1.0; python_version >= "3", but you have pyzmq 19.0.2 which is incompatible.
jupyter-client 7.3.4 requires pyzmq>=23.0, but you have pyzmq 19.0.2 which is incompatible.
Successfully installed pyzmq-19.0.2

可以自由操作jupyter以后,不能导入torch包

看了这篇博客

(50条消息) 在ipython,jupyter里import torch报错问题_楠仔码头的博客-CSDN博客

如果用conda安装后还出现类似的错误,可以在cmd里输入conda list,看看有没有ipython或者jupyter,如果没有的话可以run一下conda install jupyter(或者是ipython),然后再import.

使用 conda list之后

发现自己一直没有在新建的myenv中安装过jupyter

在新建环境中安装jupyter   使用conda install jupyter

结果它又重新下载了一边相关的库,之前降版本的pyzmq  包又得重现弄一下了。原来搞好的jupyter又不行了,。。。。。

至此发现自己一直在用base里的jupyter      

然后需要再搞一边

(50条消息) jupyter notebook报错:Bad file descriptor(C:\ci\zeromq_1602704446950\work\src\epoll.cpp:100)_多吃青菜长的高的博客-CSDN博客

这一遍又不行了。。。。。。。

最后使用

这个


导入jupyter不成发现,最后是卸载了,下载最新版的可以用了

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值