pythonuser
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pythonuser [2022/03/10 16:36] – created astroadmin | pythonuser [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' | While in the tcsh shell environment (astronomy' | ||
< | < | ||
- | conda activate py3 | + | conda activate py3.11 |
</ | </ | ||
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 |
< | < | ||
- | [zachedwa@astronomy ~]$ conda activate py3 | + | [user@astronomy ~]$ conda activate py3 |
- | [zachedwa@astronomy ~]$ which python | + | [user@astronomy ~]$ which python |
/ | / | ||
- | [zachedwa@astronomy ~]$ python | + | [user@astronomy ~]$ python |
Python 3.7.7 (default, May 7 2020, 21: | Python 3.7.7 (default, May 7 2020, 21: | ||
[GCC 7.3.0] :: Anaconda, Inc. on linux | [GCC 7.3.0] :: Anaconda, Inc. on linux | ||
Line 26: | Line 28: | ||
>>> | >>> | ||
</ | </ | ||
+ | |||
+ | If you need any packages installed, please send the packages along to Zach. |
pythonuser.1646930195.txt.gz · Last modified: 2022/03/10 16:36 by astroadmin