我知道如何设置Jupyter的工作目录或初始目录。 How to change the Jupyter start-up folder 但是,当我这样做时,我没有访问工作目录的父目录的权限。我想将Jupyter的根目录设置为主目录,以便可以访问所有目录,但我想让我的特定目录(例如my notebooks)作为文件浏览器最初显示的初始目录,所以如果我想要,我可以打开并浏览其他目录……
在某些pc上,我无法访问Anaconda环境的文件夹。是否可以临时将环境路径设置为不同于默认路径?
更新:我已经尝试过conda activate ./Desktop/My_env,它是可以的。但是当我尝试启动jupyter笔记本时,我得到了错误:
-bash: /home/username_on_the_other_pc/My_env/bin/jupyter: /home/my_local_pc_I_have_rights_to/anaconda3/envs/My_env/bin/python: bad interpreter: No such file or directory
我已经引用了这个相关的,但是它没有帮助。请参阅以下详细资料
我正在学习python虚拟环境,并试图执行一些基本命令。
虽然我能够激活virtualenv,但我不能去激活它.
jupyter记事本文件是,目前位于path /home/abcd中。
下面是我尝试过的
!mkdir python-virtual-environments
!cd python-virtual-environments
!virtualenv env
!. env/bin/activate # here `source` didn't work. So, I replaced it with `.` and
我建立了一个conda env与jupyter笔记本,tensorflow-gpu和它的其他东西从康达-锻造,在build 21.10。我也这样做了:
python -m ipykernel install --user --name=condaenvname
但是,当我选择env/内核时,会出现冲突。在进口tensorflow作为tf之后,我得到:
# what version of tensorflow is running in this env
print(tf.version.VERSION)
2.8.0
当我这么做的时候!conda列表我得到了这个:
tensorflow
有没有办法使用cmake find_package()来定位jupyter_notebook安装? 我试过了 FIND_PACKAGE(jupyter-notebook REQUIRED) 但是它错误地输出了 CMake Error at CMakeLists.txt:15 (FIND_PACKAGE):
By not providing "Findjupyter-notebook.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file
我试图在回购中添加一个文件夹iceberg/static/icon,但是这失败了,错误是:
shen-3:New Platform shen$ git add iceberg/static/icon
The following paths are ignored by one of your .gitignore files:
iceberg/static/icon
这是我的.gitignore。我真的很困惑,我不明白哪一项与我的档案相符。
hello/
deploy_server/
gunicorn_start
Vida.env/
# IDE conf
.idea/
.vscode/
#