Skip to content

pywin32_postinstall.py fails (DLL load failure) with Microsoft Store's Python #1383

@NathanZook

Description

@NathanZook

Running Windows 10 in a VM. Python 3.7.4 installed from App Store.

As administrator:

pip install pywin32
Downloading https://files.pythonhosted.org/packages/a3/8a/eada1e7990202cd27e58eca2a278c344fef190759bbdc8f8f0eb6abeca9c/pywin32-224-cp37-cp37m-win_amd64.whl (9.0MB)
100% |████████████████████████████████| 9.1MB 2.8MB/s
Installing collected packages: pywin32
Successfully installed pywin32-224
You are using pip version 19.0.3, however version 19.2.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

python pywin32_postinstall.py -install
pywin32_postinstall.py:156: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "pywin32_postinstall.py", line 605, in
install()
File "pywin32_postinstall.py", line 328, in install
LoadSystemModule(lib_dir, "pywintypes")
File "pywin32_postinstall.py", line 166, in LoadSystemModule
mod = imp.load_dynamic(modname, filename)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1264.0_x64__qbz5n2kfra8p0\lib\imp.py", line 342, in load_dynamic
return _load(spec)
File "", line 696, in _load
File "", line 670, in _load_unlocked
File "", line 583, in module_from_spec
File "", line 1043, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.

Note: there is a space in my user name. Is it possible that this is an issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions