Windows 11 VS Code ".py" kütüphanesini yükleyemiyor

araskuzeydev

Picopat
Katılım
11 Mayıs 2024
Mesajlar
32
Çözümler
1
Daha fazla  
Sistem Özellikleri
RTX, DLSSS
Cinsiyet
Erkek
Meslek
Öğrenci, Geliştirici, Youtuber
Merhaba. Ben VS Code kullanırken ".py" uzantılı dosyada "pip" ile yüklediğim halde tanımıyor.
 
Py'yi yeniden yukle ama butun kutucuklari isaretle!

Bir de hatanin resmini at.
 
Resimler:
 

Dosya Ekleri

  • Ekran görüntüsü 2024-05-12 211255.png
    40 KB · Görüntüleme: 31
  • Ekran görüntüsü 2024-05-12 211312.png
    36,4 KB · Görüntüleme: 32
Hayır kodlar ve dahili kütüphaneler çalışıyor. Ama extra benim yüklemeye çalıştığım kütüphane çalışmıyor.

Yine aynı hata:
 

Dosya Ekleri

  • bupt.png
    40,8 KB · Görüntüleme: 28
Hayır, senin attığın link yine "pip" ile yapmamı istiyor.
 
Hayır kodlar ve dahili kütüphaneler çalışıyor. Ama extra benim yüklemeye çalıştığım kütüphane çalışmıyor.

Yine aynı hata:
Yine dediğim gibi. Terminale "pip install opencv-python" yazıyorum. Yine yüklendi diyor ve yine koduma "import cv2" deyince aynı hatayı veriyor. Yani "Not module named: "cv2".".
 
Yine dediğim gibi. Terminale "pip install opencv-python" yazıyorum. Yine yüklendi diyor ve yine koduma "import cv2" deyince aynı hatayı veriyor. Yani "Not module named: "cv2".".

Python:
import cv2
import cvzone  # Importing the cvzone library


# Initialize the webcam
cap = cv2.VideoCapture(2)  # Capture video from the third webcam (0-based index)


# Main loop to continuously capture frames
while True:
    # Capture a single frame from the webcam
    success, img = cap.read()  # 'success' is a boolean that indicates if the frame was captured successfully, and 'img' contains the frame itself


    # Add a rectangle with styled corners to the image
    img = cvzone.cornerRect(
        img,  # The image to draw on
        (200, 200, 300, 200),  # The position and dimensions of the rectangle (x, y, width, height)
        l=30,  # Length of the corner edges
        t=5,  # Thickness of the corner edges
        rt=1,  # Thickness of the rectangle
        colorR=(255, 0, 255),  # Color of the rectangle
        colorC=(0, 255, 0)  # Color of the corner edges
    )


    # Show the modified image
    cv2.imshow("Image", img)  # Display the image in a window named "Image"


    # Wait for 1 millisecond between frames
    cv2.waitKey(1)  # Waits 1 ms for a key event (not being used here)
şu kodun aynısını yazınca ne oluyor ?
 
Bu siteyi kullanmak için çerezler gereklidir. Siteyi kullanmaya devam etmek için çerezleri kabul etmelisiniz. Daha Fazlasını Öğren.…