Python

np.dstack

mingw python setting

Image Analysis

■PyQt5

Installation on Windows

■Python 2 and 3 Parallel

【mac】

※ after installing Anaconda Python 3

conda create -n python2 python=2.7 anaconda

source activate python2

source deactivate

■Django

for web application

start beginner

■Tensorflow

$ pip install –upgrade pip
$ pip install tensorflow

※Installation by Administrator

$ python

>>> import tensorflow as tf

how2solve ImportError: No module named cv2

1st -> solve

alternative method

 

Handling Directory

import os

os.getcwd()

os.chdir(“./python”) # pythonディレクトリに移動

Solving python2 module missing on python3

>> import imutils
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
ImportError: No module named ‘imutils’

argparse

■ Installation of module

pip

python get-pip.py

wheel for Windows

Unofficial Windows Binaries for Python Extension Packages

pip install opencv_python-3.1.0+contrib_opencl-cp35-cp35m-win_amd64.whl

on command prompt

conda

■ Installation of numpy on Ubuntu

sudo apt-get install python3-numpy

■ Installation of Python

windows

Installation of Anaconda(Recommend) for windows

PACKAGE

■ Run Jupyter

Input the following command on command prompt

jupyter notebook

Quick Start Guide

Jupyter Notebookを使ってみよう

CTRL+Enter : execute script in a line

Shift + Enter : add new line

■matplotlib

■math

>> import math
>>> deg=180
>>> rad=math.radians(deg)
>>> print(rad)
3.141592653589793
>>>