Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I’m trying to play this game, but even after installing all the required Python packages, I get an error saying that tcod can’t be found. I’m not too familiar with Python; do you have any ideas as to why this might be happening?

(1 edit)

Did you install the packages after creating the virtual environment? I know I said they were optional, but I am still new to Python virtual environments. Plus I didn't test running my game without using a virtual environment.

Oh, no, I did not create a virtual environment. I didn’t see any venv in the rogue-dash folder, so I thought it was missing for some reason and skipped those steps; I didn’t realize the command would create it.

But now I’m not sure what to do with this command:

source venv/bin/activate

“source” isn’t a valid command as far as I can tell; do I need to download it from somewhere?

You may want to follow the steps found here to get python-tcod installed: https://python-tcod.readthedocs.io/en/latest/installation.html#windows

Oh, thanks!

What’s the difference between

py -m pip install tcod

and

pip install tcod

? The link you shared said to install it using the py -m command (which worked for me), but I’m not sure what that command does.

(2 edits)

I'm not a Windows user, I was not sure either. I found this on stackoverflow:
https://stackoverflow.com/questions/50896496/what-is-the-difference-between-py-a...

If the command:

py -m pip install tcod

Worked for you, perhaps you should try it in place of `python` that I provided in my instructions.