Asked 8 years, 1 month ago. Active 6 months ago. Viewed k times. My Idle is throwing errors that and says tkinter can't be imported. There seem to be a lot of package names flying around for this This and other assorted variations with tkinter-pypy aren't working. Improve this question. Dirk Calloway Dirk Calloway 2, 4 4 gold badges 20 20 silver badges 33 33 bronze badges. Add a comment. Active Oldest Votes. If so, Then most probably you are typing the command wrong.
It should be: import Tkinter as tk Note the capital T at the beginning of Tkinter. For Python 3, import tkinter as tk. Improve this answer. User 7 7 silver badges 20 20 bronze badges. IcyFlame IcyFlame 4, 16 16 gold badges 45 45 silver badges 73 73 bronze badges. For the import statement: Python 2. This works for me on Windows 10 and python 3. Keith Keith 6 6 silver badges 12 12 bronze badges.
But this doesn't work if we don't have sudo access and are inside our own virtualenv. That doesn't answer the question since the OP is working on windows. The answer belongs to a linux question. SherylHohman These include both traditional installers as well as single file "download and run" executables.
See Binary distributions. See Source distributions for instructions on downloading and compiling. Note: All binaries and libraries are built with Visual Studio Platform requirements Windows 7 or later. Both and bit versions are provided. Downloads NOTE: You must choose the version matching your platform as the bit version will not install on bit Windows either.
Installation mode The installation has a basic mode and an advanced mode. Feature selection Advanced mode allows selection of the features and packages to be installed. Installation scope If advanced mode is selected, the user is given a choice of installing the software only for the current user or machine wide for all users.
Installing over an older version You may install the new version over an older version that is installed with the following caveat: You must select the same install scope, per-user or per-machine, for the new install as for the older existing installation.
Shortcuts, paths and file associations In both basic and advanced modes the installer will make the following changes by default. Reporting bugs This project only provides an installation bundle for Tcl and extensions. License The following license applies only to the compilation of software included in this distribution. Nadkarni Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Thirdparty licenses The packages included in the distribution are covered by their own individual licenses. Cryptography legalities This software includes functions related to cryptographic operations. Version history Changes in Version 1. New applications: sockspy 2. Changes in Version 1. New packages 1 : ooxml 1. Hi, Thank you for reaching us. Copy link.
The I re-booted Attempting to use Python script that uses Tkinter which worked before the update , got the above error.
Both were already 8. My interpretation of the error message is that 1. It finds instead 8. Hi, When i installed i got the default version as 8.
Hi, Could you please confirm if the issue is resolved. I'm new to TK, so maybe this is an error although it runse fine But I don't see what's wrong I need to be able to access the fields in the Python script, so nee do assign them to a variable that can be referenced, which seems to work even though Pylint insists that these functions don't return a value Preview file.
Hi, Glad to know that your issue got resolved. Hi, Thanks for sharing the screenshots.
0コメント