M
M
MayaTheBee2020-09-21 23:52:29
Python
MayaTheBee, 2020-09-21 23:52:29

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 --versionthrough 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'


I don’t understand much about this, I tried to google the solution, and I see that many people have a similar problem, but nowhere is it really written how to solve it. The path to the python is specified in the environment variables. There is only one version of Python installed. I tried to install pip through the same way python get-pip.pybut the same error pops up. As a result, neither django nor install anything else.
Help me please!
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andy_U, 2020-09-22
@MayaTheBee

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.

P
PavelMos, 2020-09-22
@PavelMos

If pip doesn't work, it should be bundled with easy-install in the scripts directory like. They have the same syntax. Or put 3.6 for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question