jupyter问题汇总

1.如何查看jupyter当前的路径?

import os

print(os.path.abspath('.'))

2.假设要安装 numpy 库,则在原来的语句上添加 -i 和镜像地址即可。

pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

3.解决 ERROR: Could not find a version that satisfies the requirement xxx 的问题

(11条消息) 解决 ERROR: Could not find a version that satisfies the requirement xxx 的问题_JMU-HZH的博客-CSDN博客

4.安装python库包

网址https://www.lfd.uci.edu/~gohlke/pythonlibs/

链接:python非官方扩展库 - Tiac - 博客园 (cnblogs.com)

  1. 如何在jupyter中添加网址链接

  1. cannot import name ‘cross_validation’ from ‘sklearn

在 cross_validation 里面的函数现在在 model_selection 里面,所以只要将cross_validation替换为model_selection就可以使用

将 :from sklearn import cross_validation
换为:from sklearn import model_selection

  1. 用jupyter打开D盘的文件(默认C盘)

cd /d D:

jupyter notebook

  1. jupyter notebook安装插件

1 下载选择插件的工具栏,进入cmd中输入:pip install jupyter_contrib_nbextensions

2 将插件工具栏添加到jupyter notebook页面中,相当于安装工具栏,cmd中输入:

jupyter contrib nbextension install

3 进入jupyter notebook,cmd中输入:jupyter notebook

(32条消息) jupyter notebook安装插件_一苇所如的博客-CSDN博客_jupyter notebook插件

9.Python解决`ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88

(32条消息) Python解决`ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88_Fitz1318的博客-CSDN博客

10.Pytorch报错 module ‘torch‘ has no attribute ‘__version___‘ 

如果在pytorch环境下敲出 import torch 没有显示任何东西,那基本没有问题。 有可能是你是把这个 __version__ 打成了这个 _version_ 。

(双下划线)

11.如何在jupyter中插入图片

12修改jupyter notebook的默认工作路径

(13条消息) 修改jupyter notebook的默认工作路径_跑路的小金的博客-CSDN博客_jupyter设置工作路径

13如何讲jupyter 切换到你的其他盘:

默认jupyter 打开是z在c盘,操作如下:

打开你要写的文件夹,同时按住shift键以及鼠标右击

输入jupyter notbook

14在conda中创建了pytorch虚拟环境,怎么在jupyter 中使用pytorch虚拟环境?

这是最近遇到的一个关于Anaconda的小问题。

在pytorch环境下安装内核conda install ipykernel

再将环境写入jupyternotebook中

打开jupyter 会发现有几个可以选择的环境,选择pytorch

再将运行的代码的环境改成pytorch环境

(27条消息) Jupyter中找不到新建的虚拟环境问题;jupyter连接虚拟环境_real yao的博客-CSDN博客_jupyter没有环境

posted @   Ling22  阅读(378)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
点击右上角即可分享
微信分享提示