User Tools

Site Tools


pythonuser

This is an old revision of the document!


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:

conda activate py3.11

This will activate the py3 conda environment on astronomy. You can confirm this is the case with the command:

which python

Which will show you the current version of python being used and the location of the conda environment.

For example:

[user@astronomy ~]$ conda activate py3
[user@astronomy ~]$ which python
/home/local/Anaconda3-2020.02/envs/py3/bin/python
[user@astronomy ~]$ python
Python 3.7.7 (default, May  7 2020, 21:25:33) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

If you need any packages installed, please send the packages along to Zach.

pythonuser.1749244292.txt.gz · Last modified: 2025/06/06 21:11 by astroadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki