Monday, April 18, 2022

[SOLVED] Installing virtualenv: unrecognized arguments: --no-site-packages

Issue

I am following this.

My mac machine has python 2.7, so I first installed python 3:

brew install python3 libev

Then I installed virtualenv:

pip install virtualenv

When I run:

virtualenv --python=python3 --no-site-packages ~/dtest

...I get error:

virtualenv: error: unrecognized arguments: --no-site-packages

What am I missing here?


Solution

When the virtualenv version is greater than 20, it is the default no site packages parameter

https://programmerah.com/solved-error-unrecognized-arguments-no-site-packages-29852/



Answered By - Hudson Oliveira
Answer Checked By - Mildred Charles (WPSolving Admin)