Create a USB boot Ubuntu with a Python environment for data analysis

Note: Update from time to time. There may be mistakes.

Burn Ubuntu to USB stick with Lili USB Creator

The USB creation environment is Windows7 64bit.

material

--USB memory A (use USB2.0, 8GB surplus instead of installation CD) --USB memory B (Ubuntu installation destination, using USB3.0, 16GB)

  1. Insert USB memory A and start Lili USB
  2. Specify USB memory A in STEP1, specify the above iso in STEP2, check "Format with FAT32" in STEP4, click lightning, and wait for the creation to be completed.
  3. If possible, shut down windows and boot USB memory A (boot after setting the boot order to higher than HDD in the BIOS settings)
  4. Insert USB memory B
  5. Proceed with the installation and select "Other" as the installation type.
  6. Check the size, select the area that seems to be USB memory A, and click "Change ..."
  7. New partition size…: 16384 (maximum), Usage: ext4…, Partition initialization: Check, Mount point: / OK
  8. Device to install boot loader: Select a device that looks like USB memory A (select the nested top) and install
  9. "Continue" when you are told that you have not selected swap space
  10. After that, proceed with the initial settings, wait for installation, and complete.
  11. Insert the installed USB memory B and boot.

Various installations

Preparation

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-dev
python
Python 2.7.9 (default, Apr  2 2015, 15:33:21) 
[GCC 4.9.2] on linux2

pip

wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
pip -V
pip 7.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)

As of October 11, 2015

apt-get install python-pip

When I put it in, the package after this did not work in 1.5.6.

Data analysis related packages

sudo pip install numpy
sudo pip install pandas==0.16.2  #Latest 0.17.If it is 0, statsmodels could not be installed successfully.
sudo pip install cython
sudo pip install pystan

sudo apt-get install gfortran libopenblas-dev liblapack-dev
sudo pip install scipy

sudo pip install patsy
sudo pip install statsmodels

sudo apt-get install libfreetype6-dev
sudo pip install matplotlib
pip freeze  #Partial extraction

Cython==0.23.4
matplotlib==1.4.3
numpy==1.10.1
pandas==0.16.2
patsy==0.4.0
pystan==2.8.0.0
scipy==0.16.0
statsmodels==0.6.1

Which is better, using anaconda?

(DB and) GIS

QGIS

Added to /etc/apt/sources.list

deb     http://qgis.org/debian vivid main
deb-src http://qgis.org/debian vivid main

Get an authentication key

wget -O - http://qgis.org/downloads/qgis-2015.gpg.key | gpg --import
gpg --export --armor 3FF5FFCAD71472C4 | sudo apt-key add -

Installation

sudo apt-get update
sudo apt-get install qgis python-qgis qgis-plugin-grass

GRASS GIS GUI

Neither 6.4.4 nor 7 could be done due to an error>. < After all it should have been LTS instead of 15.04 (wrong at first)>. <

PostGIS

sudo apt-get install postgis
sudo apt-get install pgadmin3

reference

-Install Ubuntu 11.10 on a USB stick | Shirogu -Pip installation became easier before I knew it

Recommended Posts

Create a USB boot Ubuntu with a Python environment for data analysis
Create a virtual environment with Python!
[Pyenv] Building a python environment with ubuntu 16.04
[Python] Create a virtual environment with Anaconda
Create a Python execution environment for Windows with VScode + Remote WSL
Data analysis with python 2
Create a Python environment
Data analysis with Python
Prepare a programming language environment for data analysis
Create a LINE BOT with Minette for Python
Create a virtual environment with conda in Python
Create a python3 build environment with Sublime Text3
[Venv] Create a python virtual environment on Ubuntu
Commands for creating a python3 environment with virtualenv
Python for Data Analysis Chapter 4
Python 3.4 Create Windows7-64bit environment (for financial time series analysis)
Build a python environment for each directory with pyenv-virtualenv
Create a python development environment with vagrant + ansible + fabric
Data analysis environment construction with Python (IPython notebook + Pandas)
I made a Python3 environment on Ubuntu with direnv.
Create a Layer for AWS Lambda Python with Docker
Python for Data Analysis Chapter 2
Create a directory with python
Python for Data Analysis Chapter 3
Quickly create a Python data analysis dashboard with Streamlit and deploy it to AWS
Build a data analysis environment with Kedro + MLflow + Github Actions
Create a child account for connect with Stripe in Python
Build a python data analysis environment on Mac (El Capitan)
Create a Twitter BOT with the GoogleAppEngine SDK for Python
Create a simple video analysis tool with python wxpython + openCV
<Python> Build a dedicated server for Jupyter Notebook data analysis
[Python] Create a screen for HTTP status code 403/404/500 with Django
Building a Python environment on Ubuntu
Create a Python environment on Mac (2017/4)
Building a virtual environment with Python 3
Create a python environment on centos
Preprocessing template for data analysis (Python)
Data analysis starting with python (data visualization 1)
Data analysis starting with python (data visualization 2)
Create a decision tree from 0 with Python and understand it (3. Data analysis library Pandas edition)
Create a Python environment for professionals in VS Code on Windows
Building a Windows 7 environment for getting started with machine learning with Python
Create a striped illusion with gamma correction for Python3 and openCV3
Create a color picker for the color wheel with Python + Qt (PySide)
Create an environment for Django x Apache x mod_wsgi with Vagrant (Ubuntu 16.04)
Create a development environment for Go + MySQL + nginx with Docker (docker-compose)
Create a C ++ and Python execution environment with WSL2 + Docker + VSCode
Create a simple Python development environment with VS Code and Docker
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Create a Python function decorator with Class
Python visualization tool for data analysis work
Build a blockchain with Python ① Create a class
Add a Python data source with Redash
Create a dummy image with Python + PIL.
Create a python environment on your Mac
Let's create a free group with Python
Building a Python 3.6 environment with Windows + PowerShell
[Python] Create a Batch environment using AWS-CDK
Create Python + uWSGI + Nginx environment with Docker
[Mac] Building a virtual environment for Python
Create a virtual environment with Python_Mac version