![]() ![]() ![]() Then you must symlink the files from their actual location on your server to the location where PIL expects them. If you get the error "You must put some 'source' URIs in your sources.list" then make sure that your /etc/apt/sources.list has deb-src entries which match your deb entries. When I run it I get the following error: import tkinter as Tk ModuleNotFoundError: No module named 'tkinter' I did some googling and found that I need to install python3-tk so I ran the following command: sudo apt-get install python3-tk and get the following output confirming that it is installed: Reading package lists. DoneĮ: You must put some 'source' URIs in your sources.list ![]() For example, my Python v is 3.10, so I would install as sudo apt-get install python3.10-tk MacOS brew install python-tk3.10 Make sure to specify the correct Python version. Such as: sudo apt-get build-dep python-imagingĪfter I run this command I get this message: Reading package lists. UBUNTU / DEBIAN sudo apt-get install python3-tk Make sure to specify the correct Python version. For Debian versions of Linux you have to install it manually by using the following commands. On Arch Linux, sudo pacman -S tk works for installing pyautogui. So if you install Python from the official binaries for Mac OS X or Windows platform, you are good to go with Tkinter. Comments (12) AaronLaw commented on Septem16. How do I install python imaging library (PIL)? Run the following: sudo apt-get install python3-tk python3-dev. so after hours of despair i found this link topic. Firstly try to run this command specifying python version, for example, in python 3.10: sudo apt-get install python3.10-tk python3-dev. I had this problem too, even with sudo apt-get install python3-tk python3-dev it didn't work. I try to install python imaging library, by following the comment that is giving in this post: Run the following: sudo apt-get install python3-tk python3-dev. I am using dockers official docker image and want to install python3.9.6. For python 3 use: sudo apt-get install python3-tk. For python 2 use: sudo apt-get install python-tk. In that case you have to follow below mentioned steps. However the following packages replace it:Į: Package 'python-imaging' has no installation candidate Dockerfile for image built off Ubuntu 20.04 containing Python 3.10 ( Python. But there are some circumstances that your installation might be missing tkinter. This may mean that the package is missing, has been obsoleted, or I am trying to Install and configure libvirtd by following this command: sudo apt-get install python-libvirt libvirt-bin libvirt0 python-imaging python-numpy virtinst virt-viewer virt-managerĪfter I run that, I get the error: Package python-imaging is not available, but is referred to by another package. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |