Tag Archives: Python3
How to Easily Switch Between Python Versions in Ubuntu
It had been reported that changing the default python version with update-alternatives breaks the shell, so use it at your own risk! Recently my team has stopped supporting python 2.7 and only supports python version 3.5 and above. For testing purposes, I had to install all three (at the time of writing this post) 3.5,…
Directory Structure for Python Projects
To get started with Directory Structure I would like to quote the following lines from a well-kown python book called The Hitchhiker’s Guide to Python: Best Practices for Development by Kenneth Reitz and Tanya Schlusser. By “structure” we mean the decisions you make concerning how your project best meets its objective. We need to consider how to best leverage Python’s…
Python 3.6 Package Installation Error in Docker Alpine Image
As I was trying to create an alpine image with python 3.6.7 version and also wanted to install other Python packages from requirements.txt with pip. Docker build kept running into ERROR. effi and ssl could not build with gcc. It took me awhile to find out why it’s happening. In the beginning I thought it was an issue with pip version of…