在Google深度学习虚拟机中安装pip

时间:2018-07-26 06:03:58

标签: google-cloud-platform pip google-compute-engine

我正在使用其中一个较深的图像,但实际上我只熟悉使用conda安装软件包的情况,该软件包似乎未在图像中使用。我如何将软件包安装到jupyter笔记本内核中?

1 个答案:

答案 0 :(得分:0)

您可以像这样从Jupyter Kernel安装python软件包:

# Install a pip package in the current Jupyter kernel
import sys
!{sys.executable} -m pip install numpy

您可以查看this document了解更多详细信息。

相关问题