首页 > 解决方案 > 在谷歌深度学习虚拟机中安装 pip

问题描述

我使用的是深度倾斜图像之一,但我真的只熟悉使用 conda 安装软件包,这似乎没有在图像中使用。如何 pip 将软件包安装到我的 jupyter notebook 内核?

标签: google-cloud-platformpipgoogle-compute-engine

解决方案


你可以像这样从 Jupyter Kernel 安装 python 包:

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

您可以查看此文档以获取更多详细信息。


推荐阅读