I'm trying to create virtual environment in PowerShell with Python 3.9, using the pipenv command, but when I run pipenv install Django it says this:
Creating a virtualenv for this project...
Pipfile: C:\Users\Alnourrus\Desktop\cfeproj\Pipfile
Using C:/Program Files/Python39/python.exe (3.9.1) to create virtualenv...
[ =] Creating virtual environment...New python executable in C:\Users\Alnourrus\.virtualenvs\cfeproj-gGpEVtIi\Scripts\python.exe
ERROR: The executable C:\Users\Alnourrus\.virtualenvs\cfeproj-gGpEVtIi\Scripts\python.exe is not functioning
ERROR: It thinks sys.prefix is 'c:\\users\\alnourrus\\desktop\\cfeproj' (should be 'c:\\users\\alnourrus\\.virtualenvs\\cfeproj-ggpevtii')
ERROR: virtualenv is not compatible with this system or executable
Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.
Running virtualenv with interpreter C:/Program Files/Python39/python.exe
Failed creating virtual environment
[pipenv.exceptions.VirtualenvCreationException]: c:\program files\python39\lib\site-packages\virtualenv.py:1137: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "C:\Users\Alnourrus\.virtualenvs\cfeproj-gGpEVtIi\lib\site.py", line 67, in <module>
import os
File "C:\Users\Alnourrus\.virtualenvs\cfeproj-gGpEVtIi\lib\os.py", line 29, in <module>
from _collections_abc import _check_methods
ModuleNotFoundError: No module named '_collections_abc'
Failed to create virtual environment.