I am running Linux Mint 18.1 and python 3.6.
I would like to install idle3.6 but after installing this package
i get the following error :
Traceback (most recent call last):
File "/usr/local/lib/python3.6/idlelib/pyshell.py", line 4, in
<module>
from tkinter import *
File "/usr/local/lib/python3.6/tkinter/__init__.py", line 36, in
<module>
import _tkinter # If this fails your Python may not be configured for
Tk
ModuleNotFoundError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/idle3.6", line 3, in <module>
from idlelib.pyshell import main
File "/usr/local/lib/python3.6/idlelib/pyshell.py", line 7, in
<module>
"Your Python may not be configured for Tk. **", file=sys.__stderr__)
NameError: name 'sys' is not defined
what i understand is that i need to install the tkinter package.
what i have tried so far is this command:
sudo apt-get install python3-tk
but it i still get the above error.
which command should i use to install tkinter for python 3.6?
Here is a Linux Mint IDLE version: https://community.linuxmint.com/software/view/idle-python3.5, since you are using Linux Mint. There's not yet a idle-python3.6 version.
Related
I tried to instlall Python3-pip on my Linux Debian 8 Server with following command: sudo apt install python3-pip. That worked fine without any problem.
But if I'm checking now the Version of this pip3 module, I get follwing error:
$ pip3 --version
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 7, in <module>
from pip._internal.cli.main import main
File "/usr/local/lib/python3.4/dist-packages/pip/__init__.py", line 1, in <module>
from typing import List, Optional
ImportError: cannot import name 'List'
I tried to somehow solve this problem, but did not get any solution up to now...
Does anybody have had a similar Problem?
When I run import tkinter I get this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/tkinter/__init__.py", line 37, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
Ruuning apt-get install python3-tk doesn't sove this issue.
Running Python 3.9 on Debian Experimental
Maybe you can try import tkinter instead of import _tkinter
I'm having the next issue when I try to launch Spyder:
$spyder
Traceback (most recent call last):
File "/home/luisquii/anaconda3/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in <module>
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: libXss.so.1: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/luisquii/anaconda3/bin/spyder", line 11, in <module>
sys.exit(main())
File "/home/luisquii/anaconda3/lib/python3.7/site-packages/spyder/app/start.py", line 186, in main
from spyder.app import mainwindow
File "/home/luisquii/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 90, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/home/luisquii/anaconda3/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module>
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
I'm running it on Windows Subsystem For Linux terminal.
Even if I run it like:
$ anaconda-navigator
and then click "Launch" in the Anaconda interface I got the same error message in a textbox.
Do you know how to fix this issue?
If you need any extra information I can provide it.
Solved by:
sudo apt-get install libxss1
I was getting the same error.
I got Spyder to work on Windows Subsystem for Linux through a clean reinstall of Anaconda3 followed by:
sudo apt-get install libxtst6
sudo updatedb
sudo apt-get install libasound2-plugins
make sure you have xming installed
I want to use pyfftw module and I install it using sudo apt-get install python-fftw. The FFTW module is already installed. However, when I try to import pyfftw this error happens:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/pyfftw/__init__.py", line 16, in <module>
from .pyfftw import (
ImportError: /usr/lib/python2.7/dist-packages/pyfftw/pyfftw.arm-linux-gnueabihf.so: undefined symbol: fftwl_plan_with_nthreads
Anyone knows how to troubleshoot this? For additional information, my system architecture is armv7l (I am running the program in odroid), my OS is Ubuntu and I use python 2.7.12.
Thank you.
I have installed pygtk in windows from here . Still, when i run a code that has the statement import gtk in it, i get the error as:
Traceback (most recent call last):
File "E:\pycalc\calc2.py", line 7, in <module>
import gtk
ImportError: No module named gtk
I got the message that "pygtk is installed in your machine", after the installation completion. Please help me