Skip to content

Instantly share code, notes, and snippets.

@ergin
Created June 7, 2019 19:51
Show Gist options
  • Save ergin/9928cdf8694dfaedf43520a90e464710 to your computer and use it in GitHub Desktop.
Save ergin/9928cdf8694dfaedf43520a90e464710 to your computer and use it in GitHub Desktop.
Installation of Scoop, Python 3, Jupyter Notebooks, Pandas, Numpy, Matplotlib, Sklearn on Windows with Powershell
# Make sure PowerShell 5 (or later, include PowerShell Core) and .NET Framework 4.5 (or later) are installed. Then run the following steps.
# Install Scoop
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
# Note: if you get an error you might need to change the execution policy (i.e. enable Powershell) with Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# Install Python 3
scoop install python
# Upgrade pip
python3 -m pip install --upgrade pip
# Create directory structure for Jupyter Notebooks. Note: feel free to change the path anything you want.
mkdir C:\Projects\Jupyter\Notebooks
cd C:\Projects\Jupyter\Notebooks
# Install pipenv
python3 -m pip install pipenv
pipenv --python 3.7
# Install Jupyter Notebooks
pipenv install jupyterlab
# Install related ML libs. Note: feel free to add/change any package you want or need.
pipenv install pandas numpy matplotlib seaborn sklearn
# Run Jupyter Notebooks.
# Note: you need the line below anytime you want to run Jupyter Notebooks.
pipenv run jupyter lab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment