Python version managed with pyenv
Set the global version to 3.6.5 python --version should output 3.6.5
To list the available versions pyenv versions To install a version pyenv install 3.6.5 To set the global version pyenv global 3.6.5
Automatic version management
I've added at the beginning of the bin/activate script pyenv global 3.6.5 and in the deactivate function pyenv global system
Python virtual environment
Environment created with python -m venv env_name To activate the environment: source /path/to/venv/bin/activate To deactivate environment: deactivate
Once the right version of python is set and the environment is activated we can install packages with: pip install pkg_name
To install all the packages pip install -r requirements.txt
Installing the project module
Based on this answer
Install the module in editable state: cd src pip install -e .
TDS-1 Data FTP access
ftp data
Username: jblasco
Password: @jYhr=M4rF
CYGNSS Data
ftp data
Sentinel 2 Data
Python Libraries
Jupyter Lab
pip install jupyterlab
NetCDF
pip install netcdf4
Matplotlib
pip install matplotlib
Basemap
Instructions on Github I had to fix the include paths: geos_include_dirs=[os.path.join(GEOS_dir,'include'),'/home/woowapdabug/projects/thesis/python/lib/python3.6/site-packages/numpy/core/include']