Anaconda Python and Spyder with Windows Subsystem for Linux

For Python on Windows, I often use it under Windows Subsystem for Linux because of easier compiler access. This procedure includes the graphical Spyder IDE if you so desire.

  1. Download Miniconda (50 MB)
    wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
    
  2. install Miniconda
    bash Miniconda3*.sh
    
  3. press space bar a few times till it asks you to type yes.
  4. prepend the path to ~/.bashrc (the default choice).

Setup Spyder IDE for WSL

  1. setup X11 for WSL
  2. install Spyder
    conda install matplotlib spyder
    

Notes

Matplotlib trouble?

Notes on setting up Matplotlib for WSL

old Windows 10: WSL Ubuntu 14.04

Windows builds with WSL Ubuntu 16.04 work fine.

Very old Windows 10 Builds using Ubuntu 14.04 won’t work with MKL. You’ll get errors when using MKL-using modules like Scipy or Numpy on

import scipy; scipy.test()

OMP: Error #100: Fatal system error detected. OMP: System error #22: Invalid argument

Workaround: install MKL-less versions of these packages by

conda install nomkl

Leave a Comment