-
Go to Powershell. In most recent windows, the WSL (Windows subsystem for Linux) is usually pre installed. If not, update the Windows and make sure you have Windows 10 or higher.
-
Intall:
wsl --install -d Ubuntu-18.04
- Note that you have to decide a unix username and pasword
-
AT the end of this you should have a working WSL for Ubuntu-18.04. Now do the following steps on this WSL (This is kinda similar to here:
- Once inside, download and install Miniconda3 :
Follow through the instructions (mostly yes, and install path etc.). This can also be looked up on google.wget https://repo.anaconda.com/miniconda/Miniconda3-4.7.12-Linux-x86_64.sh bash Miniconda3-4.7.12-Linux-x86_64.sh
- Update the package lists :
sudo apt update
- Install core required libraries:
sudo apt install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal gnome-core libxcursor-dev alsa libegl1-mesa libegl1 cmake build-essential
(This will take time, sayyes
for a prompt in between) - Source bashrc to take up latest changes:
source ~/.bashrc
- Install spyder:
conda install matplotlib spyder scipy
(This will also take some time) - Install libnfft3:
sudo apt install libnfft3-dev
- Upgrade pip :
pip install --upgrade pip
- Install pysap and plugins:
pip install python-pysap pynfft2 pyqt5==5.12 pyqtwebengine==5.12
- Update the bash file to have display setup. For this, in file
~/.bashrc
add the following lines at the end:DISPLAY=:0 export DISPLAY LIBGL_ALWAYS_INDIRECT=1 export LIBGL_ALWAYS_INDIRECT
- Again source bashrc:
source ~/.bashrc
- Once inside, download and install Miniconda3 :
-
Back on windows:
- Download and install VncXsrv
- Start VncXsrv and in settings on first page, ensure Display is
0
. Rest of settings can be default.
-
You should ideally be ready. Run
dbus-launch gnome-terminal
on Ubuntu. You should get a terminal from ubuntu. On this, you can launchspyder
to get an IDE. By default, the base environment now should holdpython-pysap
Last active
January 13, 2022 16:19
-
-
Save chaithyagr/4104df91fbebf44fce1589e96baa6eda to your computer and use it in GitHub Desktop.
Install pysap for Windows using WSL (with sparse2d)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pip install pyqt5==5.12 pyqtwebengine==5.12
(insert below Install spyder: conda install matplotlib spyder scipy)