google-cloud-platform - 在谷歌深度学习虚拟机中安装 pip
问题描述
我使用的是深度倾斜图像之一,但我真的只熟悉使用 conda 安装软件包,这似乎没有在图像中使用。如何 pip 将软件包安装到我的 jupyter notebook 内核?
解决方案
你可以像这样从 Jupyter Kernel 安装 python 包:
# Install a pip package in the current Jupyter kernel
import sys
!{sys.executable} -m pip install numpy
您可以查看此文档以获取更多详细信息。
推荐阅读
- reactjs - Reac 组件没有被导出
- swift - 条形图不适用于 Swift 中的负 y 值
- python - 值错误:不识别连接方法内部
- pdf - iTextSharp 不呈现数字签名
- windows - pdfium build 上没有 build/config/win/visual_studio_version.gni:27:7 的错误
- python-3.x - 在 python3 中使用类型转换进行输入时显示错误
- sql - 分层查询 - 统计属于父子位置的记录
- angular - 我们如何基于 isPlatformBrowser 有条件地导入模块
- php - WooCommerce:从免费送货的阈值计数中排除产品
- javascript - 删除产品时刷新 WooCommerce 购物车页面