DARK MODE 

Saturday 16 December 2023 @

Create a Virtual Environment di Django menggunakan VSCODE

 

Create a Virtual Environment:

Run the following command to create a virtual environment. Replace env with the name you want to give to your virtual environment.

python -m venv env

virtualenv env

on Windows
.\env\Scripts\activate

on MAC
source env/bin/activate

After activation, you should see the virtual environment name in your command prompt or terminal, indicating that the virtual environment is active.

Successs..


Lanjut membuat Project Django..

Pertama-tama, pastikan bahwa Python 3.x telah terinstal di sistem Anda. Jika Python 3.x sudah terinstal, cobalah menggunakan perintah python3 atau python3.x (sesuai versi yang terinstal) untuk membuat virtual environment. Misalnya:

python3 -m venv env


No comments:

Post a Comment