My code is throwing this error: ModuleNotFoundError: No module named 'gamelib' and I am not sure why.

I have tried pip installing gamelib but it comes up with this:


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

No matching distribution found for gamelib

Here is my code:

import os
import numpy as np

path = 'training_data'

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


To my understanding, this should print the file but this is not the case

1 Answers

SimpleBinary On

The error you are getting ERROR: No matching distribution found for gamelib simply means that you don't have a compatible python version to run gamelib. Go to the pip page and check the compatible python versions an then download them.