jupterLab 路径报错: No such file or directory

遇到这样的错误,解决办法有两种

1、文件的路径需要绝对路径

data_file = "D:/jupyter_notebook/promotion/pandas_exercise/country_data.npz"
2、将需要导入的文件路放到更目录下

jupterLab 路径报错: No such file or directory

然后就可以使用相对路径了

data_file = "country_data.npz"

相关文章: