Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

ImportError: No module named 'tkinter' #13

Closed
ariellapinin opened this issue May 22, 2017 · 3 comments
Closed

ImportError: No module named 'tkinter' #13

ariellapinin opened this issue May 22, 2017 · 3 comments

Comments

@ariellapinin
Copy link

ariellapinin commented May 22, 2017

After install python in azure functions app
nuget.exe install -Source https://www.siteextensions.net/api/v3/ -OutputDirectory D:\home\site\tools python352x64
I run code with from "tkinter import *" get error
ImportError: No module named 'tkinter'

@zooba
Copy link
Member

zooba commented May 25, 2017

Correct. tkinter is not available as its primary use is for windowing, which does not make sense on our services.

What are you trying to achieve that you need tkinter?

@baterja
Copy link

baterja commented Nov 15, 2017

I need it too for creating plots with matplotlib which will be then saved and used later. Is there any alternative way to get this module?

@zooba
Copy link
Member

zooba commented Nov 16, 2017

If you change the matplotlib backend (matplotlib.use("agg"), if I remember correctly) then you shouldn't need tkinter to create and save plots.

Alternatively, if you do a regular install of Python on your own machine, you can copy the Tcl/Tk related files out of that and deploy them manually.

@zooba zooba closed this as completed Jan 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants