Finally Python
After a year of having to use python3, I decided to write an opinionated piece on how to use python3:
First, install and update package installation and environment tools. Replace python3.7 with python3.6 if 3.7 is not available on your platform.
python3.7 -m pip install -U pip wheel setuptools venv --user
Second, create a project directory.
mkdir fabulous cd fabulous
Third, create a virtual environment inside the project directory and activate it.
python3.7 -m venv venv source venv/bin/activate
You can use deactivate to exit this mode any time. Now you are able to use python and pip programs directly.
If you need, install dependency management, syntax highlighter. I just install them on almost all environments.
pip install autopep8 mypy pipdeptree pip-autoremove pip freeze > requirements.txt
You are now ready to develop your own programs. You can see packages you've installed with pipdeptree. If you want to remove a package, you can do so with pip-autoremove <package name> which will also remove all unused dependencies.
If you or anyone who joins your project want to use an IDE like vs code, it should automagically detect your autopep8 syntax formatter and your mypy linter.
Note that if you are programming on a constrained environment such as a raspberry pi, odroid or any other armv7 system with low memory, installing packages like scipy or numpy will take a very long time. In that case, if you want to speed things up, try using your operationg system's package manager and avoid the virtual environment.













