Reputation: 141
I tried to run a script using turtle module on pythonanywere.com, however, got stuck at an error that cannot find the module named "tkinter" and I need to install python3-tk package. I followed this tutorial installing new modules on pythonanywhere in attempt to install the package in Bash console on pythonanywere.com by running pip3.5 install --user package3-tk
.
However, I got the error that "could not find the version that satisfies the requirement package3-tk".
I also tried to replace the package name with tkinter
with no luck either.
Upvotes: 0
Views: 591
Reputation: 141
Just learnt the lesson of finding answer by asking question in different way. My purpose is to use turtle module on pythonanywere, which is not possible as explained in the answer above. However, I just found out that pythonanywhere has an affiliate website that is free and supports turtle (www.trinker.io)
Upvotes: 1
Reputation: 385970
You can't use the tkinter module from a server such as pythonanywhere. It needs to have a connection to a display and not just a browser window.
https://www.pythonanywhere.com/forums/topic/360/
Upvotes: 3