[英]Windows: Have Jupyter Notebook save on a drive other than the installation drive
My PC has HDD and SDD configuration.我的电脑有 HDD 和 SDD 配置。 By default, the SDD is selected as the C drive and when I installed Anaconda, it was installed in the C drive.默认选择 SDD 作为 C 盘,当我安装 Anaconda 时,它被安装在 C 盘。 When I open the Jupyter Notebook, it shows me the available paths to download, only in C drive.当我打开 Jupyter Notebook 时,它显示了可用的下载路径,仅在 C 驱动器中。 But I wanted to create the notebook (.ipynb) in D drive and store it there.但我想在 D 驱动器中创建笔记本(.ipynb)并将其存储在那里。 It is not showing me any paths related to D drive.它没有向我显示与 D 驱动器相关的任何路径。 How do I save my notebook in D drive?怎么把笔记本存到D盘?
Anaconda's installer hard-codes many path names. Anaconda 的安装程序对许多路径名进行了硬编码。 This has impacted me many times.这对我影响了很多次。 On a Unix box you can put in place a symlink.在 Unix 机器上,您可以放置一个符号链接。 Although windows has symlinks, it's hard to create and maintain them.尽管 Windows 有符号链接,但创建和维护它们很困难。 Your easiest solution is to reinstall on the D drive: Python doesn't really work well with C: and D: drives, since they are different filesystems in a different namespace.最简单的解决方案是在 D 驱动器上重新安装:Python 不适用于 C: 和 D: 驱动器,因为它们是不同命名空间中的不同文件系统。
With that said, you can also hunt around and change the Jupyter Notebook config file.话虽如此,您还可以四处寻找并更改 Jupyter Notebook 配置文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.