Build python3 environment with ubuntu 16.04

I remember building my ubuntu 16.04 python environment. There is nothing new in particular.

Introduction of pyenv virtualenv

Reference: Set up python and machine learning library on Ubuntu Reference: Python 3.x environment construction by Pyenv (CentOS, Ubuntu)

sudo apt-get install gcc g++ make git openssl libssl-dev libbz2-dev libreadline-dev libsqlite3-dev

git clone https://github.com/yyuu/pyenv.git ~/.pyenv
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc 
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc

source ~/.bashrc

python3 environment construction

pyenv install 3.5.1
pyenv rehash
pyenv global 3.5.1
mkdir ~/workPython3

~/workPython3$ pyenv virtualenv 3.5.1 3.5.1_work
~/workPython3$ pyenv local 3.5.1_work
(3.5.1_work) [email protected]:~/workPython3$ pip install numpy

No problem.

(3.5.1_work) [email protected]:~/workPython3$ pip install scipy

I didn't put any BLAS package here (install scipy) and got an error. I'm not sure which BLAS package is better, but I'll put openblas in for the time being.

Reference: Using BLAS on ubuntu 14.04

~$ sudo apt-get install libopenblas-dev

again.

(3.5.1_work) [email protected]:~/workPython3$ pip install scipy

There is no problem this time.

Recommended Posts

Build python3 environment with ubuntu 16.04
Build python environment with direnv
Build python environment with pyenv on EC2 (ubuntu)
Build python virtual environment with virtualenv
Build Mysql + Python environment with docker
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
[Pyenv] Building a python environment with ubuntu 16.04
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Build Python environment with Anaconda on Mac
Python environment with docker-compose
build Python on Ubuntu
Build a python virtual environment with pyenv
Build a modern Python environment with Neovim
Virtual environment with Python 3.6
Build AI / machine learning environment with Python
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Build Python development environment with Visual Studio Code
Build a python environment with ansible on centos6
[Python] Build a Django development environment with Docker
Create a python3 build environment with Sublime Text3
Build a Python environment with OSX El capitan
Quickly build a Python Django environment with IntelliJ
Build PyPy and Python execution environment with Docker
Build a Python machine learning environment with a container
Build a python execution environment with VS Code
Install Python environment with Anaconda
Manage python environment with virtualenv
Build Python environment on Windows
Prepare python3 environment with Docker
[ev3dev × Python] Build ev3dev development environment
Build python environment on windows
Build a Python environment offline
Let's build git-cat with Python
Build a python virtual environment with virtualenv and virtualenvwrapper
Build a python environment for each directory with pyenv-virtualenv
I made a Python3 environment on Ubuntu with direnv.
Build a machine learning application development environment with Python
Build a python virtual environment with virtualenv and virtualenvwrapper
Build python 1.0
Get started with Python! ~ ① Environment construction ~
Prepare Python development environment on Ubuntu
Setup modern Python environment with Homebrew
Building a Python environment on Ubuntu
Create a virtual environment with Python!
Building a virtual environment with Python 3
Build Flask environment with Dockerfile + docker-compose.yml
Build PyPy execution environment with Docker
Build mlpy with python3.3 (64bit) (windows 64bit)
Build IPython Notebook environment with boot2docker
Automatically build Python documentation with Sphinx
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
pytorch @ python3.8 environment construction with pipenv
Build a python3 environment on CentOS7
Prepare Python development environment with Atom
Build Vim with MinGW. (+ lua, + python)
OpenCV3 & Python3 environment construction on Ubuntu
How to build a new python virtual environment on Ubuntu
Build a machine learning scikit-learn environment with VirtualBox and Ubuntu
Build an Ubuntu python development environment on Google Cloud Platform
How to build a python2.7 series development environment with Vagrant
Build a python environment with pyenv (OS X El Capitan 10.11.3)