• Buradasın

    Mac'te Visual Studio Code ile NumPy Kurulumu ve Sanal Ortam Oluşturma

    youtube.com/watch?v=6bb9AtugbS8

    Yapay zekadan makale özeti

    • Bu video, bir eğitim içeriği olup, izleyicilere Mac işletim sisteminde Visual Studio Code kullanarak Python kütüphanelerini nasıl kurabileceklerini göstermektedir.
    • Video, NumPy kütüphanesinin kurulumunu adım adım anlatmaktadır. Önce Visual Studio Code'da yeni bir Python dosyası oluşturulur, ardından sanal ortam (virtual environment) oluşturma, aktifleştirme ve NumPy'yi pip komutu ile kurma işlemleri gösterilir. Ayrıca, bu yöntemin sadece NumPy için değil, Bcrypt, PyTorch gibi diğer pip paketlerinin de kurulumu için kullanılabileceği belirtilir.
    00:00Introduction and Setting Up
    • The video demonstrates how to install NumPy with Visual Studio Code on a Mac operating system.
    • It also covers creating a virtual environment for Python scripts and installing other pip packages.
    • A new Python file named "test.py" is created and a simple NumPy script is pasted, but "import numpy" cannot be resolved because the package is not installed.
    01:16Creating a Virtual Environment
    • A virtual environment can be created to keep installed packages only within that environment and prevent global installation.
    • The terminal is opened (ZSH, Bash, or another supported terminal) and a virtual environment is created using the command "python3 -m venv env".
    • The virtual environment directory is created and the Visual Studio Code environment switches to the new environment.
    04:03Activating the Virtual Environment
    • The virtual environment is activated using the command "source env/bin/activate".
    • When the environment is activated, the parenthesis with the environment name appears in the command line.
    • After creating and activating the virtual environment, the NumPy package can be installed.
    05:02Installing NumPy and Running the Script
    • NumPy is installed using the command "pip3 install numpy".
    • After installation, the "import numpy" error is resolved and the script can be run.
    • The script is run using the command "python3 test.py" and the output is displayed.
    06:43Conclusion
    • The video demonstrates how to create a virtual environment with Visual Studio Code and install any pip package.
    • Other packages like bcrypt, pytorch, etc., can be installed using the same approach with the command "pip3 install package_name".

    Yanıtı değerlendir

  • Yazeka sinir ağı makaleleri veya videoları özetliyor