簡體   English   中英

在 JupyterHub / notebook 中,有沒有辦法將包從一個 kernel 復制到另一個 kernel?

[英]In JupyterHub / notebook, is there a way to copy packages from one kernel to another kernel?

有誰知道,在 JupyterHub / notebook 中,有沒有辦法可以將包 / 庫從一個 kernel 復制到另一個 kernel?

這聽起來很奇怪,但在我們的環境中,沒有互聯網連接(重建 kernel 對我們來說是一種昂貴的操作)。 However, in kernel A, it has some libraries that we want to use in kernel B. (both are python kernel, by the way, same python version).

謝謝!

您的 kernel 在 python 環境中運行,您只需將庫從一個環境復制到另一個環境。 示例:假設您的 python 軟件包安裝在 env 目標/env 上,您想復制到另一個環境只需復制 lib 文件夾。

cp -r target/env/lib/ target/test/lib/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM