Score:0

error installing pylsp

mv flag

I want to install pylsp on my neovim with mason, but when I try to do it I get this error message:

Installation failed for Package(name=python-lsp-server) error="Failed to create python3 virtual environment."

I made sure that the python virtual environment packages are installed and tried to create a virtual environment myself, so I don't know why mason can't do it.

I'm using:
ubuntu 20.4
nvim V0.9.0
mason V1.0.1
python 3.8

So, doe's anyone have an idea on how to approach this error?

Score:0
kw flag

I had the same issue. It looks like mason need to create a virtualenv to install pylsp (I had the same problem with black). See this https://neovim.discourse.group/t/ubable-to-install-pylsp/3921 for reference. Running:

sudo apt-get install python3-venv

did the job for me (ubuntu 22.04)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.