

- UBUNTU INSTALL PYTHON 3.6 2019 HOW TO
- UBUNTU INSTALL PYTHON 3.6 2019 UPDATE
- UBUNTU INSTALL PYTHON 3.6 2019 CODE
- UBUNTU INSTALL PYTHON 3.6 2019 DOWNLOAD
To update python to the latest version, you can run: sudo apt-get upgrade python3
UBUNTU INSTALL PYTHON 3.6 2019 HOW TO
Output must look like this: Python 3.6.5rc1 How to update python to latest version After installation is completed check the installed version with the following command: python3.6 -V To install the missing package run: sudo apt install zlib1g-devĪfter package installation run the sudo make and sudo make install commands once more. Makefile:1099: recipe for target 'install' failed However, if there wasn't need to use zlib1g-dev package before, you'll get an error of it's absence, which will look like this: zipimport.ZipImportError: can't decompress data zlib not available Once the check has been completed run the following commands in the mentioned order to install python 3.6.5 sudo make sudo make install x according to your python version.Change your directory to the newly created Python3.6.5 folder by running: cd Python-3.6.5Īnd run the configure script to check the build. If it is working that means that the connection to your X-server is possible but you maybe need to install some extra package for Python like: sudo apt-get install python3.x-tkĬhange. Xcalc command should open a application looking like this on Windows: If xcalc is not present, install it: sudo apt-get update & sudo apt-get install x11-apps

Now, you can test that everything is working by simply executing xcalc in your WSL environnement. Search for vEthernet (WSL), that should be the one. That IP address can also be found in the command ipconfig into CMD.exe command context. One user said this worked: export DISPLAY=$(ifconfig | grep inet | awk '')
UBUNTU INSTALL PYTHON 3.6 2019 CODE
"8.8.8.8" or another not working IP address) you need to change the code in ~/.bashrc showed in the point 5 to something that will get your instance's ip address. If that's you try to check the IP address stored in DISPLAY with this command: echo $DISPLAY. Note: a few WSL2 users got error like couldn't connect to display "172.x.x.x:0". Launch VcXsrv with "Disable access control" ticked.Also, if VcXsrv is not in list of apps, you can manually add it, eg from 'C:\program files\vcxsrv\vcxsrv.exe') (When Launching xlaunch first time, you might get a prompt to allow through firewall. it's in nf so run this instead (and include in ~/.bashrc):Įxport DISPLAY=`grep -oP "(? Firewall & network protection -> Allow an app through firewall -> make sure VcXsrv has both public and private checked. WSL2 (currently insider fast ring) has GPU/docker support so worth upgrade. Just install from and run xlaunch.exe, select multiple windows, next next next ok. So I installed VcXsrv and used that instead of Xming.

But the point is once you have your DISPLAY set correctly, and your x server on windows, then most things that would work on a native ubuntu will work for the WSL.Įdit : Today I was having issues with 'unable to get screen resources' after upgrading some libraries. Maybe this is better done through a Jupyter notebook or something, but it's nice to have basic command-line python matplotlib functionality in Ubuntu for Windows on Subsystem for Linux, and this makes many other gui apps work too.įor example you can install xeyes, and it will say to install x11-apps and installing that will install GTK which a lot of GUI apps use. Plt.title('About as simple as it gets, folks')

see WSL2 below)Īnyways, after all that, this code running in ubuntu on wsl worked as is: import matplotlib.pyplot as plt export DISPLAY=localhost:0.0 (add to ~/.bashrc to make permanent.pip install matplotlib (for matplotlib.sudo apt-get install python3.6-tk (you may have to install a different python*-tk depnding on the python version you're using).
UBUNTU INSTALL PYTHON 3.6 2019 DOWNLOAD
