I’ve been trying to follow the python3+libtcod roguelike Tutorial online but I’m stuck on the first hurdle.
As soon as I try to import “libtcodpy” to python I get a “Access denied” from my terminal.
I tried running in administrator already and access was denied, I also restarted the computer, and I checked the security and it claims that all users on the computer have full access to python and to the file where I unzipped libtcod.
Anyone know how to solve this issue? And is this likely to be an issue in the future or is it just with libtcod?
What can I do in future to avoid getting an “access denied” when installing other libraries for python?
I’m using windows 10 with the latest versions of python and the latest version of libtcod.
Try running CMD or Powershell (terminal) as admin. That should allow you to install packages to the system.
To avoid this mess, I'd recommend setting up a virtual environment such as Anaconda or Virtualenv and using those to "host" your projects.
More about anaconda here