(50条消息) 李沐《动手学深度学习》d2l——安装和使用_梁小憨憨的博客-优快云博客_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.
————————————————
版权声明:本文为优快云博主「林几瑕」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.youkuaiyun.com/weixin_43582443/article/details/111511595
数据操作
pycharm怎么打开ipynb
jupyter 更换文件路径
(50条消息) jupyter 更换文件路径_小白tree的博客-优快云博客_jupyter文件路径
jupyter不能随意的切换文件
按照博客更改后,保留如下错误
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报错问题_楠仔码头的博客-优快云博客
如果用conda安装后还出现类似的错误,可以在cmd里输入conda list,看看有没有ipython或者jupyter,如果没有的话可以run一下conda install jupyter(或者是ipython),然后再import.
使用 conda list之后
发现自己一直没有在新建的myenv中安装过jupyter
在新建环境中安装jupyter 使用conda install jupyter
结果它又重新下载了一边相关的库,之前降版本的pyzmq 包又得重现弄一下了。原来搞好的jupyter又不行了,。。。。。
至此发现自己一直在用base里的jupyter
然后需要再搞一边
这一遍又不行了。。。。。。。
最后使用
这个
导入jupyter不成发现,最后是卸载了,下载最新版的可以用了