---
# System prepended metadata

title: 'Python at UPPMAX May 18, 2022'

---

# Python at UPPMAX May 18, 2022 
**Welcome!**

Link to this document: https://hackmd.io/EW_atH_vR5iq-uBFV-CiTw

ZOOM as first day:   https://uu-se.zoom.us/j/61577171186  (Passcode: 630572 )


The course material is available at [https://python-at-uppmax.readthedocs.io/en/main/index.html](https://python-at-uppmax.readthedocs.io/en/main/index.html) 

*Please note that this is an open document. Do not add any sensitive information!*


## Icebreaker question 


1. How do you install Python packages (libraries) that you use in your work? From PyPI using pip? From other places using pip? Using conda?

- pip
- pip pip3, conda positive
- pip or linux repositories (ie aptitude)
- 

2. Have you ever experienced that a project needed a different version of a Python library than the one on your computer? If yes, how did you solve it?

- using conda environment
- pip user installation 
- by installing it in a pipenv
- venv
-
-
- Tip: to load the system packages already installed creating the venv from uppmax python module using python -m venv --system-site-packages myenv will create a env myenv that can import the relevant packages especially usefull for running the ML packages on the hybrid systems that can otherwise be tricky to install. ex: module load python_ML_packages;python -m venv --system-site-packages myenv

- Q: Why should we use a Python module instead of the system python ?
    - A: System Python is little older and does not include that many packages. Loading a module helps you hold track on what your are doing. System Python may be updated without information.

- Q: Are there any advantages/dis-advantages between conda env and pipenv? Do you prefer us to use conda env in general, is it ok to work without using environments if that's convenient?
    - A: https://stackoverflow.com/questions/38217545/what-is-the-difference-between-pyenv-virtualenv-anaconda
    - Use separate environment for different projects
    - If it just involves python packages then venv is good enough otherwise conda is recommended.

- Q:
    - A:

- Q:
    - A:

- Q:
    - A:




