• 未解决的notebook问题


    在安装jupyther遇到的一些问题

    我是选择在大蟒蛇里安装的,但是出现了如下问题

    (base) C:\Users\yjq>conda install jupyter notebook
    Collecting package metadata (current_repodata.json): done
    Solving environment: done

    ## Package Plan ##

      environment location: D:\Anaconda

      added / updated specs:
        - jupyter
        - notebook


    The following packages will be downloaded:

        package                    |            build
        ---------------------------|-----------------
        conda-4.13.0               |   py39haa95532_0         923 KB
        ------------------------------------------------------------
                                               Total:         923 KB

    The following packages will be UPDATED:

      conda                               4.10.3-py39haa95532_0 --> 4.13.0-py39haa95532_0


    Proceed ([y]/n)? jupyter notebook
    Invalid choice: jupyter notebook

    查阅资料后知道是

    用 conda clean --all 查看,在缓存文件夹 Cache location: xxx/.conda/pkgs 或者 xxx/opt/anaconda3/pkgs 里,有 python-3.5.4-0 ,因为以前在conda下载包的过程中被中止了,造成无向的缓存。

    源头如下:

    Anaconda conda命令创建环境或者下载包无报错,但所有操作都未成功(Solving environment: done)_Asia码的博客-CSDN博客

    所以使用conda clean --all #清理无用的包或安装包 

    然后又出现如下

    Proceed ([y]/n)?

    这个时候 其实是在问你时候执行命令,输入y即可

    然后又出现如下情况,没有直接弹出网页,而是给出了网址,我们直接将网址复制到浏览器即可

        To access the notebook, open this file in a browser:
            file:///C:/Users/%E4%BD%99%E4%BD%B3%E7%90%AA/AppData/Roaming/jupyter/runtime/nbserver-18912-open.html
        Or copy and paste one of these URLs:
            http://localhost:8888/?token=ce1cc4ee223a605a1be7af985fc7e8809fce141fd1176467
         or http://127.0.0.1:8888/?token=ce1cc4ee223a605a1be7af985fc7e8809fce141fd1176467
    [I 15:02:58.483 NotebookApp] 302 GET /?token=ce1cc4ee223a605a1be7af985fc7e8809fce141fd1176467 (::1) 2.580000ms

    回车之后便出现了如下界面 

    解决方案,即直接弹出网页界面,不用手动

     

     

    # c.NotebookApp.browser = ''
    #将其修改成以浏览器形式打开
    import webbrowser
    webbrowser.register("msedge",None,webbrowser.GenericBrowser("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe")
    c.NotebookApp.browser = 'msedge'

    参考来源Jupyter notebook不自动弹出网页解决办法_海北0227的博客-CSDN博客 

     

    最终,这个问题我还是解决不了,希望广大的网友可以帮忙出谋划策

  • 相关阅读:
    用ABAP语言写的扫雷游戏
    ros gazebo相关包的安装
    sqli-labs/Less-48
    Ubuntu18.04安装opencv和opencv_contrib
    Spring MVC 发送邮件编程
    gstreamer-基础教程8
    cuDNN安装成功
    dubbo学习资料
    前端常用的【文件下载操作3】【sheetJS XLSX】前端代码生成excel下载到本地 ==> 本地导入固定格式的excel后前端解析出需要的字段
    UE5、CesiumForUnreal实现瓦片坐标信息图层效果
  • 原文地址:https://blog.csdn.net/m0_62329504/article/details/126159387