windows-subsystem-for-linux

ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects

ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects Question: Error while installing manimce, I have been trying to install manimce library on windows subsystem for linux and after running pip install manimce Collecting manimce Downloading manimce-0.1.1.post2-py3-none-any.whl (249 kB) |████████████████████████████████| 249 kB 257 kB/s Collecting Pillow Using cached Pillow-8.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 …

Total answers: 7

How to redirect wsl2 display to local windows machine in python

How to redirect wsl2 display to local windows machine in python Question: I have a python game that is being run on wl2 and I would like the display to be in windows. I have tried to use the code below in my python program but it just gets stuck because it is not the …

Total answers: 1

pyenv install: 3.x BUILD FAILED (Ubuntu 20.04 using python-build 20180424)

pyenv install: 3.x BUILD FAILED (Ubuntu 20.04 using python-build 20180424) Question: Trying to install a new Python – version with pyenv on Ubuntu 20.04 WSL for Windows 10 fails with the following output: username@hd1pcms0347:~$ pyenv install 3.9.4 Downloading Python-3.9.4.tar.xz… -> https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tar.xz Installing Python-3.9.4… python-build: use readline from homebrew BUILD FAILED (Ubuntu 20.04 using python-build 20180424) …

Total answers: 2

How do you fix tkinter in python3.8 on wsl?

How do you fix tkinter in python3.8 on wsl? Question: I was trying to learn GUI based python therefore i was using the Tkinter library. My OS is windows but I have installed Ubuntu wsl as my default terminal, and use wsl vscode as my default text-editor. I was just creating a basic window using …

Total answers: 2

Installing venv for python3 in WSL (Ubuntu)

Installing venv for python3 in WSL (Ubuntu) Question: I am trying to configure venv on Windows Subsystem for Linux with Ubuntu. What I have tried: 1) Installing venv through pip (pip3, to be exact) pip3 install venv I get the following error ERROR: Could not find a version that satisfies the requirement venv (from versions: …

Total answers: 6

No menu for adding WSL python interpreter in PyCharm

No menu for adding WSL python interpreter in PyCharm Question: I was following this guide from official jetbrains page, until the step 2 comes in the existence. In the picture mentioned in that page, has so many options like ssh, wsl, vagrant, docker, etc. In my pycharm (latest 2019.3.4) it only shows 4 options – …

Total answers: 2

Visual Studio Code's debugger & pipenv

Visual Studio Code's debugger & pipenv Question: I would like to use Visual Studio Code’s debugger to debug my python code, but exception occurs. I use Windows 10, WSL, Debian, Python 3.7.6. Exception has occurred: ModuleNotFoundError No module named ‘flask’ File “/home/kazu/test/main.py”, line 2, in <module> from flask import Flask This is python debugger console’s …

Total answers: 3

Windows Subsystem for Linux – conda: command not found

Windows Subsystem for Linux – conda: command not found Question: I’m using Windows 10 and recently installed Windows Subsystem for Linux. Anaconda was already installed on my PC at that point. When I try to run conda commands on Bash on Ubuntu on Windows I get the following error: $ conda conda: command not found …

Total answers: 3

Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2)

Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2) Question: So it seems on ubuntu for windows (windows subsystem for linux) people are suggesting we need to use Agg backend and just save images, not show plots. import matplotlib matplotlib.use(‘Agg’) # no UI backend import matplotlib.pyplot as plt import numpy as np t …

Total answers: 9