Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


python_virtual_environments

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
python_virtual_environments [2023/06/05 14:56] juckinspython_virtual_environments [2023/08/10 11:34] juckins
Line 20: Line 20:
   conda config --set auto_activate_base false   conda config --set auto_activate_base false
  
-  ~/miniconda3/bin/conda create -n testenv -c conda-forge time numpy requests pygrib netCDF4 scipy+Now try creating a test conda environment: 
 + 
 +  cd ~/miniconda3/envs 
 +  ~/miniconda3/bin/conda create -n testenv2 python=3.11.4 -c conda-forge time numpy requests pygrib netCDF4 scipy
   ~/miniconda3/bin/conda init bash   ~/miniconda3/bin/conda init bash
  
Line 32: Line 35:
   conda deactivate   conda deactivate
      
-Other useful commmands: +Other useful commmands (see https://www.python.org/downloads/ for specific python versions) 
-  conda create -n testenv2 python=3.11.3 (with specific version of python)+  conda create -n testenv2 python=3.11.3
   conda activate testenv2   conda activate testenv2
      
python_virtual_environments.txt · Last modified: 2023/08/10 11:35 by juckins