How to get started with Python

Introduction

--Purpose of this article: Prepare the analysis environment --Analysis environment on your PC !! --Automate analysis --Procedural analysis (not only borrow the wisdom of the ancestors, but also leave the wisdom to the juniors)

(Let's do research (work) in an environment that anyone can use without being bound by a license such as MATLAB.)


Get to know Python


Overview

Get to know Python at the URL below.

-Original Python.org -Python Japanese --Python Module --Equivalent to Toolbox in MATLAB


What you can do

--String processing --Scientific calculation: data analysis, data drawing --Communication: Communication in various industrial IOs (USB, RS-232C, ....; control of measuring instruments, etc.), network --Other: Creating web, manuals, reports?

Anyway, I think I can do anything.


Prepare the environment

Currently, Python has 2.7 series and 3.5 series, but let's use 3.5 series, which has a long support period.

--Reference: [Links] Introduction to Python Science and Technology Calculation Package (Enthought Canopy, Anaconda, Pythonxy)


Windows

-Download from here - Anaconda --Reference: Create a python environment on Windows --I didn't know that you can manage python version in conda environment.


Mac/Linux

--Homebrew (package management tool)

Install using anyenv and pyenv.


Preparation

# Mac/Put Homebrew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

#Let's put git
$ brew install git # Mac
$ sudo apt-get install git #Debian system
$ sudo yum install git #RedHat system


Put python

#Install anyenv and pyenv.
$ git clone https://github.com/riywo/anyenv ~/.anyenv
$ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> $HOME/.zshrc
$ echo 'eval "$(anyenv init -)"' >> ~/.zshrc
$ exec $SHELL -l

$ anyenv install pyenv

$ pyenv install anaconda3-*.*.* #Its newest number
$ pyenv global anaconda3-*.*.* && pyenv rehash && exec $SHELL -l

For people other than zsh, please read each


Module installation

Let's put the following modules

--Scipy relations: Numpy, Scipy, Matplotlib, iPython, pandas

> pip install numpy

Get started with Python

I think there is something I want to do here, but let's search for "Introduction to python" or "python regression analysis" on Google etc. Also, refer to the following page.

-Python Tutorial -Scipy Lecture Notes (Japanese translation) -Dot install: python

Recommended Posts

How to get started with Python
Link to get started with python
How to get started with Scrapy
How to get started with Django
How Python beginners get started with Python with Progete
How to get started with laravel (Linux)
Get started with Python! ~ ② Grammar ~
A layman wants to get started with Python
Python: How to use async with
Get started with Python! ~ ① Environment construction ~
I tried to get started with blender python script_Part 01
How to get the Python version
I tried to get started with blender python script_Part 02
How to use FTP with Python
How to get mouse wheel verdict with Python curses
How to calculate date with python
Get started with Python in Blender
How to get started with the 2020 Python project (windows wsl and mac standardization)
Minimum knowledge to get started with the Python logging module
How to get into the python development environment with Vagrant
[Introduction to Python] How to get data with the listdir function
Step notes to get started with django
How to get parent id with sqlalchemy
I tried to get started with Hy
How to work with BigQuery in Python
How to get a stacktrace in python
How to do portmanteau test with python
How to display python Japanese with lolipop
Get Started with TopCoder in Python (2020 Edition)
How to enter Japanese with Python curses
[Python] How to deal with module errors
How to install python3 with docker centos
[Blender x Python] Let's get started with Blender Python !!
Django 1.11 started with Python3.6
How to install Python
1.1 Getting Started with Python
How to install python
Getting Started with Python
Get started with MicroPython
Get date with python
Get started with Mezzanine
Getting Started with Python
[Python] A memo that I tried to get started with asyncio
Here's a brief summary of how to get started with Django
[Python] How to get a value with a key other than value with Enum
How to upload with Heroku, Flask, Python, Git (4)
Python hand play (let's get started with AtCoder?)
How to read a CSV file with Python 2/3
The easiest way to get started with Django
How to enjoy programming with Minecraft (Ruby, Python)
[REAPER] How to play with Reascript in Python
How to do multi-core parallel processing with python
Strategy on how to monetize with Python Java
Introduction to Tornado (1): Python web framework started with Tornado
[Python] How to draw multiple graphs with Matplotlib
[Python] How to read excel file with pandas
I tried to get CloudWatch data with Python
How to specify attributes with Mock of python
How to measure execution time with Python Part 1
How to get dictionary type elements of Python 2.7
How to get the files in the [Python] folder