Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3.12 + PyWin32
#2
Possibly not usable. Python 3.11 works, 3.12 not, don't know why.

To install I used these steps:

1. Download Python 32-bit (not 64-bit) from https://www.python.org/downloads/windows/
2. Uninstall other versions of 32-bit Python.
3. Run the downloaded Python installer as administrator.
4. Check "Add python.exe to PATH".
5. Install.
6. Run cmd as administrator. Run it directly from explorer (eg Start menu), else it may inherit old environment variables.
7. In cmd run: where python
    It should print one or more paths. One of them must be of the new installed 32-bit Python. Copy it without "\python.exe" to the clipboard.
8. In cmd change current directory to the copied. Example:
    cd C:\Users\me\AppData\Local\Programs\Python\Python312-32
9. In cmd run: python -m pip install --upgrade pywin32
10. In cmd run one of the following. The first installs just what need for QM, the second something more.
    python Lib\site-packages\win32comext\axscript\client\pyscript.py
    python Scripts/pywin32_postinstall.py -install
11. Exit QM (not just close window). Run QM again. Now QM Python functions should work.

---

In LibreAutomate you can use Python too:
https://www.libreautomate.com/forum/foru...php?fid=25


Messages In This Thread
Python3.12 + PyWin32 - by Makrone - 01-31-2024, 11:02 AM
RE: Python3.12 + PyWin32 - by Gintaras - 01-31-2024, 03:02 PM
RE: Python3.12 + PyWin32 - by Makrone - 02-01-2024, 09:13 AM
RE: Python3.12 + PyWin32 - by Gintaras - 02-01-2024, 09:19 AM
RE: Python3.12 + PyWin32 - by Gintaras - 02-01-2024, 09:29 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)