I am running RedHat 4.1.2 offline and trying to get _tkinter working for Python 2.7.13. I have Tcl/tk 8.4 installed, but it doesn't seem to be working right. libtcl8.4.so is located in /usr/lib64/ and I'm not sure if that's related, but I figured I would mention it. Here is the error when I try import Tkinter.
Asked
Active
Viewed 2,095 times
1 Answers
1
Perhaps you could try a package manager such as Anaconda and install Tkinter.
This post may help.
![](../../users/profiles/4782513.webp)
newkid
- 1,194
- 8
- 23
-
I'm offline, so installing a package manager doesn't help and I can't use apt-get or wget. I am transferring tar files from my windows machine to the linux machine – user3358710 Jun 07 '17 at 20:09
-
Is your machine virtualised? – newkid Jun 07 '17 at 20:11
-
I'm ssh'd into the server. but can transfer files to my home directory from Windows – user3358710 Jun 07 '17 at 20:14
-
Download an offline installer for Anaconda. A simple google search should lead you to it. – newkid Jun 07 '17 at 20:20
-
So I installed it, but I'm still having the same error – user3358710 Jun 07 '17 at 20:54
-
Can you share the output of '$which python' – newkid Jun 07 '17 at 21:11
-
"Python 2.7.13 (default, Jun 7 2017, 14:35:11)" And then it starts the python interpreter – user3358710 Jun 07 '17 at 21:13
-
Then it's not the Anaconda python. You'll have to update PYTHON_PATH and PATH environment variables to point to your installation. Set your python to Anaconda python interpreter – newkid Jun 07 '17 at 21:20