Create Virtual Environment using a specific Python version (for a project)

Publicado em: 27 Maio 2024
no canal de: Bhavik
19
0

Reference: Conda Cheat Sheet - https://docs.conda.io/projects/conda/...

1. Create a virtual environment named practice-env (you can choose whatever name you need) using Python version 3.10 (you can choose the version you need).
conda create --name practice-env python=3.10

2. Activate the virtual environment
conda activate practice-env

3. Deactivate the virtual env
conda deactivate

4. Check all the environments we have on our system
conda env --list

The benefit of creating virtual env with conda is, that they all are centralized, so we can see all the environments using that command. The default Python venv is path-specific, so we must be on the correct path to acknowledge that particular environment's existence, and packages within that environment.


Nesta página do site você pode assistir ao vídeo on-line Create Virtual Environment using a specific Python version (for a project) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Bhavik 27 Maio 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 19 vezes e gostou 0 espectadores. Boa visualização!