Thursday, April 28, 2022

[SOLVED] ModuleNotFoundError: No module named 'virtualenv.seed.embed.via_app_data' when I created new env by virtualenv

Issue

I had install virtualenv, created a venv by virtualenv since last month but now I can't create other env. In Ubuntu 20.04 terminal, I had tried:

$virtualenv my_env

But its result is

ModuleNotFoundError: No module named 'virtualenv.seed.embed.via_app_data'

After that, I checked its version:

$virtualenv --version

and get:

virtualenv 20.0.17 from /usr/lib/python3/dist-packages/virtualenv/__init__.py

I also checked it by $pip3 list and virtualenv still exists. It seem that problem came after I had install Anaconda.


Solution

Try to create the virtual environment using directly venv module

python3 -m venv my_env


Answered By - isalgueiro
Answer Checked By - Willingham (WPSolving Volunteer)