当前位置:   article > 正文

anaconda,jupyter打开某文件夹下的项目代码python_jupyter只能运行文件夹里的代码吗

jupyter只能运行文件夹里的代码吗

juoyter每次都是默认打开在c盘里的文件和代码,想把代码移动到d或e盘,每次打开e盘下的jupyter代码

  1. 配置环境变量
    更改我的环境变量,用户变量-Path-编辑,新增变量,配置以下路径。
//anaconda安装路径下
xxxx\anaconda3
xxxx\anaconda3\Scripts\
xxxx\anaconda3\Library\mingw-w64\bin
xxxx\anaconda3\Library\bin
  • 1
  • 2
  • 3
  • 4
  • 5
  1. 环境变量配置完成之后即可在任意文件夹下打开jupyter
    打开方式有两种:
  • win+cmd之后输入
jupyter notebook "E:\工作\xxxxxx"
  • 1
  • cd到代码文件,直接
jupyter notebook
  • 1

参考文章:
https://blog.csdn.net/weixin_51402817/article/details/109604180

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/酷酷是懒虫/article/detail/832159
推荐阅读
相关标签
  

闽ICP备14008679号