Çözüldü Python'a wxPython Kurulmuyor

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.

awuin

Hectopat
Katılım
29 Ocak 2021
Mesajlar
585
Makaleler
1
Çözümler
3
Daha fazla  
Cinsiyet
Erkek
GitHub - MrS0m30n3/youtube-dl-gui: A cross platform front-end GUI of the popular youtube-dl written in wxPython.
Burada gereken programları kurmaya çalışıyorum ama hata alıyorum. İlk aldığım hata bu.

Kod:
C:\Windows\system32>pip install -U wxPython
Collecting wxPython
  Using cached wxPython-4.2.0.tar.gz (71.0 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Han\AppData\Local\Temp\pip-install-9ssaumjg\wxpython_cb06d15b92594e84b40c860e6d3e16d4\setup.py", line 27, in <module>
          from buildtools.config import Config, msg, opj, runcmd, canGetSOName, getSOName
        File "C:\Users\Han\AppData\Local\Temp\pip-install-9ssaumjg\wxpython_cb06d15b92594e84b40c860e6d3e16d4\buildtools\config.py", line 30, in <module>
          from attrdict import AttrDict
        File "C:\Users\Han\AppData\Local\Programs\Python\Python311\Lib\site-packages\attrdict\__init__.py", line 5, in <module>
          from attrdict.mapping import AttrMap
        File "C:\Users\Han\AppData\Local\Programs\Python\Python311\Lib\site-packages\attrdict\mapping.py", line 4, in <module>
          from collections import Mapping
      ImportError: cannot import name 'Mapping' from 'collections' (C:\Users\Han\AppData\Local\Programs\Python\Python311\Lib\collections\__init__.py)
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
 
Terminale bir pip list yazıp bakar mısın? Collection isimli bir paket var mı?

Python 3.11 kullanıyorsan daha eski bir sürüme dönmen gerek. Python 3.10, Python 3.9 diye ilerle.

from collections import Mapping kullanımı python 3.10 ile kullanımdan kaldırılmış.
 
Son düzenleme:
pip.png

Terminale bir pip list yazıp bakar mısın? Collection isimli bir paket var mı?
Yok diye görünüyor.
Python 3.11 kullanıyorsan daha eski bir sürüme dönmen gerek. Python 3.10, Python 3.9 diye ilerle.
3.8'e dönüyorum.
 

Bu konuyu görüntüleyen kullanıcılar

Technopat Haberler

Yeni konular

Geri
Yukarı