【发布时间】:2020-11-15 11:41:58
【问题描述】:
我已经定义了一个我想在我的代码中使用的类。 为了导入它,我知道我必须先安装它。(我正在使用谷歌的 colab)
要先安装,我将 .py 文件上传到已安装的驱动器中,这没有问题。
但是安装包还是有问题。
如何在我的代码中正确使用这个预定义类?
!pip install robotdef.py
Collecting robotdef.py
ERROR: Could not find a version that satisfies the requirement robotdef.py (from versions: none)
ERROR: No matching distribution found for robotdef.py
【问题讨论】:
标签: python installation jupyter-notebook package google-colaboratory