模块与单个.py文件的区别,模块中含有__init__.py文件,其中函数调用使用的是相对路径,如果使用导入.py文件的方法在Google Colab中导入模块 会报错:Attempted relative import in non-package 在Google Colab导入中导入一个本地模块 例,将pykalman模块导入,github地址 https://github.com/pykalman/pykalman 1.递归创建目录 !mkdir -p pykalman-master/p…