Install Bash on Ubuntu on Windows, Ruby, Python, Jupyter, etc.

background

While I was changing the environment settings of my computer, I couldn't use gnuplot or Narray of Ruby on Cygwin, so I decided to replace it with bash. I also installed Python and Jupyter.

Install Bash on Ubuntu on Windows

I referred to this article. Let's install Bash on Ubuntu on Windows!
Set to developer mode
Open "Settings"-> "Update and Security"-> "For Developers" and select "Developer Mode". Start a command prompt, type bash and press Enter to start the installation. The installation took a few minutes.

Ruby installation

Try to build a Rails environment with windows bash. (Windows 10 Anniversary Update version) Please refer to. If you can install Ruby safely gem install narray I typed to install Narray. You can now use Narray in Ruby. About gnuplot

gem install gnuplot```
 I entered.
# Installation of Python etc.
 The reference article is
 [3] <a href="http://qiita.com/dd511805/items/23891da61559405fd5f6"> Run Tensorflow from Jupyter Notebook on Bash on Ubuntu on Windows </a>
 [4] <a href="http://qiita.com/toyolab/items/bccd03d4cb7795112ab6"> Notes for using TensorFlow on Bash on Ubuntu on Windows </a>
 is.
 <br> Installing pyenv <br>
```sudo aptitude install git
git clone https://github.com/yyuu/pyenv ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc```
 To install pyenv.
 <br> Installing Anaconda <br>
```pyenv install --list```
 I searched for the latest version of Anaconda and installed 3-4.4.0 with the default settings.

#### **`pyenv install anaconda3-4.4.0`**

pyenv global anaconda3-4.4.0 pyenv rehash``` https://sourceforge.net/projects/xming/ From the page ** /Xming-fonts/7.7.0.10/Xming-fonts-7-7-0-10-setup.exe ** ** /Xming-fonts/7.5.0.93/Xming-fonts-7-5-0-93-setup.exe ** Download. After that, in Bash on Ubuntu on Windows, enter X11 with the following command and write the DISPLAY setting in .bashrc.

echo 'export DISPLAY=localhost:0.0' >> ~/.bashrc
source ~/.bashrc```
 <Install matplotlib>
 Matplotlib is required to display the graph with jupyter, so install it.
```sudo aptitude install libqtgui4
conda install matplotlib
conda install nomkl
conda update --all```
 <br> Installing jupyter <br>

#### **`aseering/wsl`**
```sudo add-apt-repository ppa

sudo aptitude update
sudo aptitude install libzmq3
conda install -c jzuhone zeromq=4.1.dev0
conda install jupyter```
 after this
```jupyter notebook --no-browser```
 When you enter, the address will be displayed on bash, so you can use jupyter notebook by opening it in a browser.
 <br> Installing Tensorflow <br>
```conda install -c conda-forge tensorflow```
 I also installed tensorflow according to the reference page.





## Reference article
 I referred to the following article.

 [1] <a href="http://qiita.com/Aruneko/items/c79810b0b015bebf30bb"> Let's install Bash on Ubuntu on Windows! </a>
 [2] <a href="http://qiita.com/chimame/items/8130aa2c07a152a865b1"> Try building a Rails environment with windows bash. (Windows 10 Anniversary Update version) </a>
 [3] <a href="http://qiita.com/dd511805/items/23891da61559405fd5f6"> Run Tensorflow from Jupyter Notebook on Bash on Ubuntu on Windows </a>
 [4] <a href="http://qiita.com/toyolab/items/bccd03d4cb7795112ab6"> Notes for using TensorFlow on Bash on Ubuntu on Windows </a>



Recommended Posts

Install Bash on Ubuntu on Windows, Ruby, Python, Jupyter, etc.
Install python on windows
Install Python 3.3 on Ubuntu 12.04
Install Python3, numpy, pandas, matplotlib, etc. on Windows
Run Jupyter on Ubuntu on Windows
Install watchdog on Windows + Python 3.3
Install OpenCV on Ubuntu + python
[Python] [Chainer] [Windows] Install Chainer on Windows
Run Tensorflow from Jupyter Notebook on Bash on Ubuntu on Windows
[Windows] [Python3] Install python3 and Jupyter Notebook (formerly ipython notebook) on Windows
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install python2.7 on windows 32bit environment
Install xgboost (python version) on Windows
Install Python on Windows + pip + virtualenv
Install Pytorch on Blender 2.90 python on Windows
Run XGBoost on Bash on Ubuntu on Windows
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install Python development environment on Windows 10
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
Python on Windows
Steps to install Python environment on Ubuntu
Install and run Python3.5 + NumPy + SciPy on Windows 10
Install python package in personal environment on Ubuntu
[Procedure memo] Install Python3 + OpenSSL locally on Ubuntu
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Notes for using TensorFlow on Bash on Ubuntu on Windows
[Python] How to install OpenCV on Anaconda [Windows]
Install MongoDB on Ubuntu 16.04 and operate via python
Install ZIP version Python and pip on Windows 10
Install TensorFlow on Ubuntu
Install python on WSL
Install Python on Pidora.
Install Scrapy on python3
Install Python 3 on Mac
Install PySide2 on Ubuntu
Install Python3.4 on CentOS 6.6
Install Python Jupyter lab
Install JModelica on Ubuntu
Install Anaconda on Windows 10
python basic on windows ②
Install pycuda on Windows10
Install Python 2.7.3 on CentOS 5.4
Install pygraphviz on Windows 10
build Python on Ubuntu
Install Chainer 1.5.0 on Windows
Install Python 3.4 on Mac
Install Theano on Ubuntu 12.04
Install angr on Ubuntu 18.04
Install pip / pip3 on Ubuntu
Install Python 3.6 on Docker
Install Python (for Windows)
For those who can't install Python on Windows XP
Install octave_kernel on Jupyter [additional]
Install Numpy on virtualenv on Windows
Set-enable Python virtualenv on Windows
Set up Python 3.4 on Ubuntu
Run Openpose on Python (Windows)
How to install Python [Windows]
Install Python 3.8 on RHEL 8 (AppStream)
Use matplotlib on Ubuntu 12 & Python