User Tools

Site Tools


cluster:python

Differences

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

Link to this comparison view

cluster:python [2021/11/22 14:16] – created schroedercluster:python [2024/11/11 20:38] (current) – removed mcloughlin
Line 1: Line 1:
-====== Python ====== 
-The cluster has both **Python 2** and **Python 3**. To run Python 2 shell, simply type <code>python</code> and to exit it press Ctrl+Z. To run a pre-written python script, type <code>python script.py</code> To use Python 3, just substitute command to <code>python3</code> 
  
-===== Installing Libraries ===== 
- 
-To install a library that doesn't come with the initial installation, you first need to create an environment 
-<code>/opt/python37/bin/python3 -m venv environment_name</code> 
-and then activate it  
-<code>source environment_name/bin/activate</code> 
-(you should now see the environment on the far left of the terminal line). After that, you can simply install any library using pip from the command line 
-<code>pip install pandas</code> 
cluster/python.1637590566.txt.gz · Last modified: 2021/11/22 14:16 by schroeder