close

[Solved] ModuleNotFoundError: No module named ‘virtualenv.seed.embed.via_app_data’ when I created new env by virtualenv

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error ModuleNotFoundError: No module named ‘virtualenv.seed.embed.via_app_data’ when I created new env by virtualenv in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How ModuleNotFoundError: No module named ‘virtualenv.seed.embed.via_app_data’ when I created new env by virtualenv Error Occurs?

Today I get the following error ModuleNotFoundError: No module named ‘virtualenv.seed.embed.via_app_data’ when I created new env by virtualenv in Python.

How To Solve ModuleNotFoundError: No module named ‘virtualenv.seed.embed.via_app_data’ when I created new env by virtualenv Error ?

  1. How To Solve ModuleNotFoundError: No module named 'virtualenv.seed.embed.via_app_data' when I created new env by virtualenv Error ?

    To Solve ModuleNotFoundError: No module named 'virtualenv.seed.embed.via_app_data' when I created new env by virtualenv Error Try to create the virtual environment using directly venv module python3 -m venv my_env

Solution 1

Try to create the virtual environment using directly venv module

python3 -m venv my_env

Solution 2

@yushulx I also ran into the same issue. I installed both via pip3 and via sudo apt install python3-virtualenv and it gave me an error but after I ran pip3 uninstall virtualenv I could create a virtualenv without issue

Solution 3

I want to have virtualenvwrapper. On Debian 10 testing I did:

apt remove python3-virtualenvwrapper  # not purge, I want no changes in ~/.virtualenvs/
apt purge python3-virtualenv
/usr/bin/python3.8 -m pip install --force-reinstall virtualenvwrapper
/usr/bin/python3.8 -m pip install --force-reinstall virtualenv==20.0.23

.24 no longer works. I hope it will be solved sometimes…

EDIT 2021.01: I have changed my stack to: pyenv + pyenv-virtualenvwrapper + poetry. Ie. I use no apt or pip installation of virtualenv or virtualenvwrapper, and instead I install pyenv‘s plugin pyenv-virtualenvwrapper. This is easier way.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment