python - 如何在谷歌 colab 中使用 pip3?
问题描述
%pip3 install --index-url=https://pypi.spotify.net/spotify/production confidence
导致此错误:
UsageError: Line magic function `%pip3` not found.
如何在 google colab 上安装带有 pip3 的软件包?
解决方案
您必须改为使用!
才能%
运行 bash 命令
!pip3 install --index-url=https://pypi.spotify.net/spotify/production confidence
但是,您可以简单地使用pip
而不是pip3
编辑:如您所见,网址返回 ConnectTimeoutError,因为它显然已损坏。也许你想简单地运行
!pip install spotify confidence
?
推荐阅读
- javascript - 使用 API 返回的记录更新状态,更新后
- node.js - Google Hangouts Chatbot 创建房间
- highcharts - 在 Highcharts 库错误中设置图表的最小值和最大值
- python - c++排序的python实现
- java - 如何根据用户选择打印星数
- c++ - 当我使用直接初始化与 std::initializer_list 时的不同指令
- javascript - 在 Three.js 中绘制没有重叠边界的国家/地区的面孔
- swift - SwiftUI macOS 列表行删除填充
- java - Intellij 是格式化后行内的 puttign 空格
- ms-access - 在 Access 2016 查询中使用 Countifs