ModuleNotFoundError:没有名为“gamelib”的模块

2024-06-28 21:20:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我的代码引发以下错误: ModuleNotFoundError:没有名为“gamelib”的模块 我不知道为什么。你知道吗

我尝试过pip安装gamelib,但结果是:

错误:

Could not find a version that satisfies the requirement gamelib (from versions: none)

No matching distribution found for gamelib

这是我的密码:

import os
import numpy as np

path = 'training_data'

for file in os.listdir(path):
    data = np.load(f'{path}/{file}')
    break

print(data[0]) 

据我所知,这应该打印文件,但事实并非如此


Tags: 模块pippath代码importfordataos