Miguel, good night.
First, make sure your Pip is up to date, if you’re not trying to update it, try updating by this command:
python -m pip install --upgrade pip
if you still can’t perform the installation after the update, try using the command:
pip3 install virtualenv
After you fail, try to install virtualenv and create your virtual environment by the code editor you use, repeating the previous steps in the terminal of the code editor you use.
After installation, to create a virtual environment on windows: You need to have Pip installed.
1 - make sure you are in the root folder of your project.
2 - to create your virtual environment, you can do this through your code editor.
3 - Again make sure that you are in the root folder of your project, after that go to the terminal and run the command:
python -m venv nomedoseuambientevirtual
4 - Now you only need to activate your virtual environment through the command:
nomedoseuambientevirtual\Scripts\Activate.bat
5 - To disable your virtual environment run the command:
deactivate
6 - Remember that you can create virtual environments for each project you understand needed.
in new versions of Python, use "python -m venv [venv name]" instead of virtualenv.
– jsbueno