[Çözüldü] Tkinter modülü hatası

Başlatan shigej38, 03 Temmuz 2019 - 15:01:07

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

shigej38

merhaba arkalaşlar tkinter modülünü kurmaya çalışıyorum ancak şu şekilde bi hata alıyorum. bunu nasıl çözebilirim?

sudo pip install Tkinter
[sudo] password for ertan:
The directory '/home/ertan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ertan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting Tkinter
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 342, in run
    requirement_set.prepare_files(finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages
    page = self._get_page(location)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 795, in get_page
    resp.raise_for_status()
  File "/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/tkinter/

.py

en alttaki hataya bakarsan eğer tkinter bulunamadı yazdığını görürsün.

tkinterı kurmak için şunu kullan:

sudo apt-get install python-tk

shigej38

Sevgili: [mention=647538]@.py[/mention]

paket kurulu olarak görünüyor ancak modül bulunamadı hatası alıyorum
sudo apt-get install python-tk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-tk is already the newest version (2.7.16-2~18.04).
The following packages were automatically installed and are no longer required:
  dkms libfilezilla0 libpugixml1v5 libwxbase3.0-0v5 libwxgtk3.0-0v5
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.


HATA
python3 Desktop/plaka.py
Traceback (most recent call last):
  File "Desktop/plaka.py", line 2, in <module>
    from Tkinter import*
ModuleNotFoundError: No module named 'Tkinter'

Dagiztanli08


from tkinter import *


şeklinde yazar mısınız ?

shigej38

[mention=647553]@Dagiztanli08[/mention]

bu şekilde de yazmıştım ancak yine hata aldım.

python3 Desktop/plaka.py
Traceback (most recent call last):
  File "Desktop/plaka.py", line 2, in <module>
    from Tkinter import *
ModuleNotFoundError: No module named 'Tkinter'

Empat

[mention=647554]@shigej38[/mention]
Python ile pek alakadar değilim, fakat [mention=647553]@Dagiztanli08[/mention] tkinter şeklinde yazmanızı önermiş; siz ise, Tkinter şeklinde ilk harfi büyük olarak yazmışsınız.

Bu durum bir hataya yol açabilir. Tümünü küçük harfle yazmayı dener misiniz?
Everything for me is just Peace - Love - Coding. Also, as they say: I am a programmer, I have no life!

shigej38

Sevgili: [mention=647567]@Empat[/mention] ve [mention=647553]@Dagiztanli08[/mention]

T harfinin küçüklüğü gözümden kaçmış kusura bakmayın * karakterine odaklanmışım sadece sorun düzeldi teşekkür ederim

Empat

[mention=647569]@shigej38[/mention]
Rica ederim.

Başka bir sorunun yanıtını bulamazsanız ya da bir sorunla karşılaşırsanız, yeni bir konu açmaktan çekinmeyin.

İyi forumlar.
Everything for me is just Peace - Love - Coding. Also, as they say: I am a programmer, I have no life!