Last active
December 4, 2017 08:18
-
-
Save hideojoho/17c17d20a02541de0aad9de40ccf10c9 to your computer and use it in GitHub Desktop.
How to install Jupyter Notebook on Ubuntu 16.04 LTS Desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change Desktop item's language to English | |
LANG=C xdg-user-dirs-gtk-update | |
# Update package list | |
sudo apt-get update | |
# Install required libraries | |
sudo apt-get install make git build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils | |
# Install pyenv script | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
# Add pyenv setting to .bashrc | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc | |
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc | |
# Refresh your shell setting | |
exec "$SHELL" | |
# Check your pyenv installation | |
which pyenv | |
# Install a version of Python (Miniconda in this case) | |
pyenv install miniconda3-latest | |
# Check your Python installation | |
pyenv versions | |
# Change your default Python to the installed one | |
pyenv global miniconda3-latest | |
# Check your Python version | |
python --version | |
# Update conda package list | |
conda update conda | |
# Install Python libraries for Jupyter Notebook | |
conda install -y -c jupyter notebook | |
# Install extension libraries for Jupyter Notebook | |
conda install -y -c numpy scipy scikit-learn matplotlib pandas pillow graphviz python-graphviz | |
# Start Jupyer Notebook | |
jupyter notebook |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment