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

Pubblicato il: 27 maggio 2024
sul canale di: 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.


In questa pagina del sito puoi guardare il video online Create Virtual Environment using a specific Python version (for a project) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Bhavik 27 maggio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 19 volte e gli è piaciuto 0 spettatori. Buona visione!