Answer the question
In order to leave comments, you need to log in
How to get rid of AttributeError: module 'mmap' has no attribute 'PROT_READ' when trying to install pip on Windows 10?
Good afternoon!
I installed python version 3.8.5 from the off site on OS Windows 10, in theory it should go along with pip. But when you try to enter any command associated with it, at least even pip --version
through the cmd command line, the following error occurs:
Could not import runpy module
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 908, in _find_spec
AttributeError: 'TransformFinderLoader' object has no attribute 'find_spec'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 910, in _find_spec
File "<frozen importlib._bootstrap>", line 884, in _find_spec_legacy
File "c:\users\***\appdata\local\programs\python\python38-32\lib\site-packages\source_transform\meta_path.py", line 44, in find_module
triggered_transforms = self.get_triggered_transforms()
File "c:\users\***\appdata\local\programs\python\python38-32\lib\site-packages\source_transform\meta_path.py", line 65, in get_triggered_transforms
prot=mmap.PROT_READ
AttributeError: module 'mmap' has no attribute 'PROT_READ'
python get-pip.py
but the same error pops up. As a result, neither django nor install anything else. Answer the question
In order to leave comments, you need to log in
Judging by where you installed python, you installed it from the MS Store. Get the hell out of here and then install the 64 bit version from Python.org.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question