Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

493
Visualizações
No module named 'virtualenv.activation.xonsh'

I triyed to execute pipenv shell in a new environtment and I got the following error:

Loading .env environment variables…
Creating a virtualenv for this project…
Using /home/user/.pyenv/shims/python3.9 (3.9.7) to create virtualenv…
⠋ModuleNotFoundError: No module named 'virtualenv.activation.xonsh'
Error while trying to remove the /home/user/.local/share/virtualenvs/7t env: 
No such file or directory

Virtualenv location: 
Warning: Your Pipfile requires python_version 3.9, but you are using None (/bin/python).
  $ pipenv check will surely fail.
Spawning environment shell (/usr/bin/zsh). Use 'exit' to leave.

I tried to remove pipenv, install python with pienv create an alias to python, but anything works.

Any idea, I got the same error in existing environment, I tried to remove all environments folder but nothing.

Thanks.

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

By github issue, the solution that works was the following:

sudo apt-get remove python3-virtualenv
over 4 years ago · Santiago Trujillo Relatório

0

Removing the virtualenv pip package worked for me (on Ubuntu WSL)

pip uninstall virtualenv
over 4 years ago · Santiago Trujillo Relatório

0

I had the same error when updating from Python 3.7 to 3.9 in my pyproject.toml:

[tool.poetry.dependencies]
- python = "^3.7"
+ python = "^3.9"

The cause for me was that I had not installed python3.9-venv yet. Easy:

sudo apt install python3.9-venv

Check with

python3.9 -m venv

OS: Ubuntu 21.10, so your package name might differ

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda