Thursday, March 31, 2022

[SOLVED] I am unable to create a new virtualenv in ubuntu?

Issue

So, I installed virtualenv in ubuntu terminal. I installed using the following commands:

sudo apt install python3-virtualenv
pip install virtualenv

But when I try creating a new virtualenv using:

virtualenv -p python3 venv

I am getting the following error:

AttributeError: module 'virtualenv.create.via_global_ref.builtin.cpython.mac_os' has no attribute 'CPython2macOsArmFramework'

How can I solve it?


Solution

You don't need to use virtualenv. You can use this:

python3 -m venv ./some_env


Answered By - user17558100
Answer Checked By - Marilyn (WPSolving Volunteer)