วันพุธที่ 15 มิถุนายน พ.ศ. 2559

ติดตั้ง Chainer on ubuntu 16.04

1. git clone https://github.com/pfnet/chainer.git
    (Download chainer to install)

2. pip install -U setuptools
    (Upgrade setuptools)

3. sudo apt-get install libhdf5-dev
   (install library hdf5)

4. pip install chainer
   (install chainer )

Ref: http://docs.chainer.org/en/stable/install.html#install-chainer
   : https://github.com/pfnet/chainer (Download git)

การติดตั้ง HDF5 for Python on ubuntu(16.04)

1. git clone https://github.com/h5py/h5py.git
    (Download hdf5)

2. pip install --upgrade pip
   (upgrade pip)

3. pip install h5py
   (install h5py)

Ref: http://www.h5py.org/
      : https://github.com/h5py/h5py

การสั่ง upgrade numpy (Ubuntu 16.04)

1. sudo pip install numpy --upgrade

หมายเหตุ:
  - ต้องมีการลง numpy มาก่อนแล้วถึงใช้ตัวนี้ได้
  - sudo -H pip install numpy --upgrade (อยากให้ลอง)

อ้างอิง: http://stackoverflow.com/questions/19839488/upgrade-to-numpy-1-8-0-on-ubuntu-12-04

การติดตั้ง Protocol Buffers (ใช้ Ubuntu 16.04)

1. sudo git clone https://github.com/google/protobuf.git
    (Copy file ผ่าน git ลงเครื่องเรา)

2. cd protobuf
    (เมื่อ copy ได้แล้วเราก็เข้าไปใน folder protobuf )

3. ติดตั้ง Protobuf Runtime โดยใช้ติดตั้ง C++ ก่อน
   3.1. C++ Installation - Unix
        3.1.1. sudo apt-get install autoconf automake libtool curl make g++ unzip
        3.1.2. sudo ./autogen.sh
        3.1.3. sudo ./configure --prefix=/usr
        3.1.4. sudo make
3.1.5. sudo make check   (ต้อง pass ทั้งหมด)            
3.1.6. sudo make install
3.1.7. sudo ldconfig
3.1.8. cd src
3.1.9. sudo ./proprotobuf-test
3.1.10.sudo ./proprotobuf-lite-test

   3.2. Python
3.2.0. ควรติดตั้งหัวข้อ 3.1. ให้เสร็จก่อน
3.2.1. cd protobuf/python
3.2.2. python -V (Make sure you have Python 2.6 or newer)
3.2.3. if you do not have setuptool then download from
https://packaging.python.org/en/latest/installing.html#setup-for-installing-packages.
3.2.4. python setup.py build
3.2.5. python setup.py test

อ้างอิง: https://developers.google.com/protocol-buffers/

การส่ง update Ubuntu โดยผ่าน command line

1. sudo apt-get update
2. sudo apt-get upgrade               #เหมือน update packeage ปัจจุบัน
3. sudo apt-get dist-upgrade          
แหล่งที่มา http://askubuntu.com/questions/196768/how-to-install-updates-via-command-line

วันพฤหัสบดีที่ 2 มิถุนายน พ.ศ. 2559

การติดตั้ง filelock (How to install filelock on ubuntu)

1. sudo apt-get install python3-setuptools

2. git clone https://github.com/benediktschmitt/py-filelock.git
  #Download filelock by git

3. sudo python setup.py install
    #Install filelock

4. sudo python test.py

การติดตั้ง six (How to install six on ubuntu)

บทความนี้เป็นการติดตั้ง six บน Ubuntu

1. https://pypi.python.org/pypi/six/
    #Download six

2. sudo tar -xvzf six-1.10.0.tar.gz
    #Extract tar ball

3. cd six

4. sudo python setup.py install
    #Install Six