Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 448
Tung Ng. Avatar asked Aug 19 '20 16:08

Tung Ng.


2 Answers

@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

like image 95
techcheese Avatar answered Oct 01 '22 18:10

techcheese


Try to create the virtual environment using directly venv module

python3 -m venv my_env
like image 31
isalgueiro Avatar answered Oct 01 '22 19:10

isalgueiro