User Tools

Site Tools


pythonuser

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
pythonuser [2022/03/10 16:37] astroadminpythonuser [2025/06/06 21:14] (current) astroadmin
Line 1: Line 1:
 ====== Python for Users ====== ====== Python for Users ======
 +
 +Jon and Zach maintain a central python environment for all users on astronomy through anaconda. Below is how you activate this environment. If you do not use this environment (and just the default python on the cluster), you will likely run into errors with package dependencies (as they are not installed on the default linux python!). 
  
 While in the tcsh shell environment (astronomy's default shell for all users) you are able to activate python via: While in the tcsh shell environment (astronomy's default shell for all users) you are able to activate python via:
  
 <code> <code>
-conda activate py3+conda activate py3.11
 </code> </code>
  
Line 15: Line 17:
 Which will show you the current version of python being used and the location of the conda environment.  Which will show you the current version of python being used and the location of the conda environment. 
  
-For example:+For example (using the old Python 3.7 environment):
 <code> <code>
 [user@astronomy ~]$ conda activate py3 [user@astronomy ~]$ conda activate py3
Line 26: Line 28:
 >>>  >>> 
 </code> </code>
 +
 +If you need any packages installed, please send the packages along to Zach. 
pythonuser.1646930223.txt.gz · Last modified: 2022/03/10 16:37 by astroadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki