# \#Windows

**URL:** https://discuss.python.org/tag/windows/63.md

[Latest](https://discuss.python.org/latest.md) · [Categories](https://discuss.python.org/categories.md) · [Tags](https://discuss.python.org/tags.md)

---

## [Can't uninstall all-user Python 3.13 after installing single-user Python 3.14 on Windows](https://discuss.python.org/t/cant-uninstall-all-user-python-3-13-after-installing-single-user-python-3-14-on-windows/107762)

<div class="topic-metadata">

**Author:** [@oavaldezi](https://discuss.python.org/u/oavaldezi)\
**Replies:** 6\
**Last updated:** [June 16, 2026, 1:06pm UTC](https://discuss.python.org/t/cant-uninstall-all-user-python-3-13-after-installing-single-user-python-3-14-on-windows/107762 "2026-06-16T13:06:51Z")

</div>

In February 2025, I installed Python 3.13.2 as an administrator “for all users” on my Windows laptop. I recently installed single-user Python 3.14.6 with the Python install manager, which prompted me to uninstall the old…

---

## [Windows, ACL, and building wheels](https://discuss.python.org/t/windows-acl-and-building-wheels/98443)

<div class="topic-metadata">

**Author:** [@AJNeufeld](https://discuss.python.org/u/AJNeufeld)\
**Replies:** 5\
**Last updated:** [March 12, 2026, 9:57am UTC](https://discuss.python.org/t/windows-acl-and-building-wheels/98443 "2026-03-12T09:57:21Z")

</div>

On Windows, there appears to be a difference in Access Control Lists of wheels built with different versions of Python. After py -3.11 -m build --wheel, then Get-Acl .\\dist\\\*3.1.4\* | Format-List produces: Path : Micr…

---

## [Python on Windows doesn't accept cmd line args](https://discuss.python.org/t/python-on-windows-doesnt-accept-cmd-line-args/106198)

<div class="topic-metadata">

**Author:** [@PeterL](https://discuss.python.org/u/PeterL)\
**Replies:** 4\
**Last updated:** [February 21, 2026, 3:11am UTC](https://discuss.python.org/t/python-on-windows-doesnt-accept-cmd-line-args/106198 "2026-02-21T03:11:13Z")

</div>

I have installed Python (3.14.3) on Windows using the new Windows Installer (25.2) I previously had Python(s) 3.12, 3.13 and 3.14.2 installed using the “old” installer. All of those were uninstalled, machine rebooted. F…

---

## [Troubleshooting ResourceUnavailable error for programs in venv script folder on windows](https://discuss.python.org/t/troubleshooting-resourceunavailable-error-for-programs-in-venv-script-folder-on-windows/104698)

<div class="topic-metadata">

**Author:** [@wong-jt](https://discuss.python.org/u/wong-jt)\
**Replies:** 1\
**Last updated:** [November 3, 2025, 9:28pm UTC](https://discuss.python.org/t/troubleshooting-resourceunavailable-error-for-programs-in-venv-script-folder-on-windows/104698 "2025-11-03T21:28:52Z")

</div>

On my corporate windows 11 computer without elevated privileges, all .exe programs in the Scripts\\ folder of the virtual environment but python.exe fails to run using Powershell 7. Trying to launch pip after activating …

---

## [Pyinstaller issues](https://discuss.python.org/t/pyinstaller-issues/104485)

<div class="topic-metadata">

**Author:** [@martinyb](https://discuss.python.org/u/martinyb)\
**Replies:** 1\
**Last updated:** [October 22, 2025, 1:49pm UTC](https://discuss.python.org/t/pyinstaller-issues/104485 "2025-10-22T13:49:54Z")

</div>

Hello everyone. I am having major issues with pyinstaller. I created a practice game and wanted to learn how to share it. I learned about executable files (.exe) and a lot of sites said to install pyintaller. I did and …

---

## [Issues with Python Windows Installer](https://discuss.python.org/t/issues-with-python-windows-installer/103643)

<div class="topic-metadata">

**Author:** [@jstevens](https://discuss.python.org/u/jstevens)\
**Replies:** 1\
**Last updated:** [September 9, 2025, 1:26pm UTC](https://discuss.python.org/t/issues-with-python-windows-installer/103643 "2025-09-09T13:26:40Z")

</div>

The current Python installer for windows has some issues when run in CMD/PowerShell Terminal. Installs correctly with /quiet InstallAllUsers=1 PrependPath=1 Include\_test=0 When the /uninstall switch is used with the /q…

---

## [A way to narrow down \`A dynamic link library (DLL) initialization routine failed.\`](https://discuss.python.org/t/a-way-to-narrow-down-a-dynamic-link-library-dll-initialization-routine-failed/97518)

<div class="topic-metadata">

**Author:** [@Andrej730](https://discuss.python.org/u/Andrej730)\
**Replies:** 30\
**Last updated:** [July 16, 2025, 6:28am UTC](https://discuss.python.org/t/a-way-to-narrow-down-a-dynamic-link-library-dll-initialization-routine-failed/97518 "2025-07-16T06:28:45Z")

</div>

Hi! I’ve stumbled upon some user having DLL load failed while importing bsdf: A dynamic link library (DLL) initialization routine failed. error when they import pyradiance library. The library itself is not important, I…

---

## [Using Clang-CL for Better Performance on Windows on ARM](https://discuss.python.org/t/using-clang-cl-for-better-performance-on-windows-on-arm/96130)

<div class="topic-metadata">

**Author:** [@Akash9824](https://discuss.python.org/u/Akash9824)\
**Replies:** 12\
**Last updated:** [July 1, 2025, 4:36pm UTC](https://discuss.python.org/t/using-clang-cl-for-better-performance-on-windows-on-arm/96130 "2025-07-01T16:36:26Z")

</div>

I am writing to discuss the potential of using clang-cl as the default compiler for Windows on ARM (WOA) devices to ensure consistent performance across platforms. Given its widespread acceptance in iOS devices with ARM …

---

## [Handling SIGINT in multiprocessing on Windows](https://discuss.python.org/t/handling-sigint-in-multiprocessing-on-windows/90064)

<div class="topic-metadata">

**Author:** [@Hatsome](https://discuss.python.org/u/Hatsome)\
**Replies:** 5\
**Last updated:** [May 13, 2025, 9:05pm UTC](https://discuss.python.org/t/handling-sigint-in-multiprocessing-on-windows/90064 "2025-05-13T21:05:13Z")

</div>

On Linux the following code allows the main process to shutdown its child process when a SIGINT is received (if Ctrl+C is pressed after the Wait for event message): import multiprocessing as mp import signal import time…

---

## [Python - Could not locate Interpreter](https://discuss.python.org/t/python-could-not-locate-interpreter/89553)

<div class="topic-metadata">

**Author:** [@menghayu](https://discuss.python.org/u/menghayu)\
**Replies:** 5\
**Last updated:** [May 1, 2025, 8:40am UTC](https://discuss.python.org/t/python-could-not-locate-interpreter/89553 "2025-05-01T08:40:55Z")

</div>

I Installed Python in my system and tried installing libraries, but getting error in comman prompt saying could not locate interpreter I reinstalled/Uninstalled multiple times still it;s not working This version is Pyt…

---

## [Python Launcher and Files Won't Open - Python 3.13.2 + Windows 11](https://discuss.python.org/t/python-launcher-and-files-wont-open-python-3-13-2-windows-11/85777)

<div class="topic-metadata">

**Author:** [@User678](https://discuss.python.org/u/User678)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 1:04pm UTC](https://discuss.python.org/t/python-launcher-and-files-wont-open-python-3-13-2-windows-11/85777 "2025-03-24T13:04:17Z")

</div>

Hello all! I have been trying to teach myself Python and ran into some issues with installation. When I first installed Python, everything worked as expected (launcher opened, files saved etc.), except the system couldn…

---

## [Best way to edit an excel spreadsheet stored on SharePoint?](https://discuss.python.org/t/best-way-to-edit-an-excel-spreadsheet-stored-on-sharepoint/85069)

<div class="topic-metadata">

**Author:** [@MDallas](https://discuss.python.org/u/MDallas)\
**Replies:** 1\
**Last updated:** [March 19, 2025, 9:25am UTC](https://discuss.python.org/t/best-way-to-edit-an-excel-spreadsheet-stored-on-sharepoint/85069 "2025-03-19T09:25:46Z")

</div>

Hey everyone! I have a quick question for anyone familiar with Python and SharePoint. I was hoping to automate some of my data entry work with python: I collect data and then enter it into several different excel sprea…

---

## [About .exe wrappers created by frontends when installing wheels on Windows?](https://discuss.python.org/t/about-exe-wrappers-created-by-frontends-when-installing-wheels-on-windows/75942)

<div class="topic-metadata">

**Author:** [@paugier](https://discuss.python.org/u/paugier)\
**Replies:** 36\
**Last updated:** [January 16, 2025, 6:29pm UTC](https://discuss.python.org/t/about-exe-wrappers-created-by-frontends-when-installing-wheels-on-windows/75942 "2025-01-16T18:29:19Z")

</div>

I’m working on improving Mercurial packaging and use modern Python packaging methods. Currently, we have an issue on Windows with pipx and UV because Mercurial uses a script (hg · branch/default · mercurial / mercurial-…

---

## [Change filter and Refresh Pivot Table of Analysis Services in Excel using Python - win32com](https://discuss.python.org/t/change-filter-and-refresh-pivot-table-of-analysis-services-in-excel-using-python-win32com/62299)

<div class="topic-metadata">

**Author:** [@Jamesvasanth21](https://discuss.python.org/u/Jamesvasanth21)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 12:44pm UTC](https://discuss.python.org/t/change-filter-and-refresh-pivot-table-of-analysis-services-in-excel-using-python-win32com/62299 "2024-08-29T12:44:26Z")

</div>

Need your help to change the filter for a pivot table in Excel using Python. Refreshing Pivot Tables are working I can clear filters but When I try to change the filter, the Python program fails. I have tried it with bot…

---

## [Extension compatibility with Python from Windows Store](https://discuss.python.org/t/extension-compatibility-with-python-from-windows-store/61050)

<div class="topic-metadata">

**Author:** [@minrk](https://discuss.python.org/u/minrk)\
**Replies:** 6\
**Last updated:** [August 26, 2024, 3:33pm UTC](https://discuss.python.org/t/extension-compatibility-with-python-from-windows-store/61050 "2024-08-26T15:33:00Z")

</div>

I’ve run into an issue where pyzmq wheels for Windows Python which bundle (C++ library) libzmq apparently work for users with CPython 3.12.3, but crash with CPython 3.12.3 from the Windows Store. This is the same user on…

---

## [Concurrent file opening on Windows (multi threads or multi processes)](https://discuss.python.org/t/concurrent-file-opening-on-windows-multi-threads-or-multi-processes/60846)

<div class="topic-metadata">

**Author:** [@christophe-papazian](https://discuss.python.org/u/christophe-papazian)\
**Replies:** 15\
**Last updated:** [August 19, 2024, 1:02pm UTC](https://discuss.python.org/t/concurrent-file-opening-on-windows-multi-threads-or-multi-processes/60846 "2024-08-19T13:02:55Z")

</div>

Hello! I’m a developer on dd-trace-py and I recently encountered some issues when trying to concurrently open files on Windows. I would appreciate any feedback on this, whether I did something wrong or if perhaps CPytho…

---

## [I can't install Python, I always get an error code](https://discuss.python.org/t/i-cant-install-python-i-always-get-an-error-code/58740)

<div class="topic-metadata">

**Author:** [@ItachiUchiha](https://discuss.python.org/u/ItachiUchiha)\
**Replies:** 1\
**Last updated:** [July 20, 2024, 10:11am UTC](https://discuss.python.org/t/i-cant-install-python-i-always-get-an-error-code/58740 "2024-07-20T10:11:38Z")

</div>

I always get the same error code no matter what version I download, Error code 0x80070643 Windows 8 I hope someone can help me with this

---

## [How to invoke kernel32.SetWaitableTimer](https://discuss.python.org/t/how-to-invoke-kernel32-setwaitabletimer/54569)

<div class="topic-metadata">

**Author:** [@LY1806620741](https://discuss.python.org/u/LY1806620741)\
**Replies:** 2\
**Last updated:** [May 30, 2024, 1:20pm UTC](https://discuss.python.org/t/how-to-invoke-kernel32-setwaitabletimer/54569 "2024-05-30T13:20:55Z")

</div>

Hi, I get a problem by using python invoke windows kernel32.Setwaitable, it don’t call back my python function, how to simulate PTIMERAPCROUTINE param. the microsoft doc: my code: test py: unitree\_sdk2py/test/plat…

---

## [Duplicated lines in IDLE output](https://discuss.python.org/t/duplicated-lines-in-idle-output/47954)

<div class="topic-metadata">

**Author:** [@ikrylov](https://discuss.python.org/u/ikrylov)\
**Replies:** 3\
**Last updated:** [March 12, 2024, 10:54am UTC](https://discuss.python.org/t/duplicated-lines-in-idle-output/47954 "2024-03-12T10:54:29Z")

</div>

A friend of mine is using Python to solve a research problem. Their setup is a bit unconventional - IDLE on Windows - but it’s what works for them. After adding some logging, we noticed that sometimes, the lines being p…

---

## [Windows exe behaving differently than Python script](https://discuss.python.org/t/windows-exe-behaving-differently-than-python-script/47148)

<div class="topic-metadata">

**Author:** [@david.dillard](https://discuss.python.org/u/david.dillard)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 11:50pm UTC](https://discuss.python.org/t/windows-exe-behaving-differently-than-python-script/47148 "2024-02-28T23:50:29Z")

</div>

I’ve got a script that communicates with a local server and that works fine as a script. However, when I build a wheel file and then install it, with the corresponding exe on Windows, that exe ends up crashing because a…

---

## [Registry HKLM editing error "WinError 5 - Access Denied"](https://discuss.python.org/t/registry-hklm-editing-error-winerror-5-access-denied/47080)

<div class="topic-metadata">

**Author:** [@adimurugan](https://discuss.python.org/u/adimurugan)\
**Replies:** 1\
**Last updated:** [February 28, 2024, 6:50am UTC](https://discuss.python.org/t/registry-hklm-editing-error-winerror-5-access-denied/47080 "2024-02-28T06:50:32Z")

</div>

Whenever I tried to edit the HKLM of registry python spits error “WinError5 Access Denied”. I have an Administrator rights and I checked with it by code itself. I compile the program and run the exe with administrator ri…

---

## [How to convert python strings to wchar\_t\* in Cython](https://discuss.python.org/t/how-to-convert-python-strings-to-wchar-t-in-cython/43184)

<div class="topic-metadata">

**Author:** [@kcvinker](https://discuss.python.org/u/kcvinker)\
**Replies:** 0\
**Last updated:** [January 14, 2024, 7:52pm UTC](https://discuss.python.org/t/how-to-convert-python-strings-to-wchar-t-in-cython/43184 "2024-01-14T19:52:27Z")

</div>

Hi all, I want to convert a python string to wchar\_t\* aka LPCWSTR in Cython. I see this code sample in Cython docs. cdef extern from "Windows.h": ctypedef Py\_UNICODE WCHAR ctypedef const WCHAR\* LPCWSTR cty…

---

## [How to use optional CALLBACK parameters in ctypes](https://discuss.python.org/t/how-to-use-optional-callback-parameters-in-ctypes/41392)

<div class="topic-metadata">

**Author:** [@kcvinker](https://discuss.python.org/u/kcvinker)\
**Replies:** 2\
**Last updated:** [December 18, 2023, 9:03pm UTC](https://discuss.python.org/t/how-to-use-optional-callback-parameters-in-ctypes/41392 "2023-12-18T21:03:26Z")

</div>

Hi all, I am trying to use ‘SetTimer’ function from windows api. This is my declaration in python. SetTimer = windll.user32.SetTimer SetTimer.argtypes = \[HWND, UINT\_PTR, UINT, TIMERPROC\] SetTimer.restype = UINT\_PTR An…

---

## [Root-Relative Symlink Resolution](https://discuss.python.org/t/root-relative-symlink-resolution/40011)

<div class="topic-metadata">

**Author:** [@CarlitoGil](https://discuss.python.org/u/CarlitoGil)\
**Replies:** 7\
**Last updated:** [December 2, 2023, 5:01pm UTC](https://discuss.python.org/t/root-relative-symlink-resolution/40011 "2023-12-02T17:01:21Z")

</div>

Windows documents that symlinks can target root-relative paths, for example \\Target. Python abides, and if the symlink is C:\\Path\\Symlink to \\Target then C:\\Target is used by os.stat and just about every built-in functi…

---

## [How to access 1-wire temperature device in windows 10](https://discuss.python.org/t/how-to-access-1-wire-temperature-device-in-windows-10/38368)

<div class="topic-metadata">

**Author:** [@Aswell](https://discuss.python.org/u/Aswell)\
**Replies:** 2\
**Last updated:** [November 11, 2023, 9:25am UTC](https://discuss.python.org/t/how-to-access-1-wire-temperature-device-in-windows-10/38368 "2023-11-11T09:25:55Z")

</div>

I am fairly familiar with Python on the Raspberry Pi but not in Windows. I want to read a 1-wire device (DS18B20) from my PC running Windows 10 in Python. How do I do this? I have a Maxim USB Host Adapter for 1-wire (D…

---

## [Limiting the memory usage of the process](https://discuss.python.org/t/limiting-the-memory-usage-of-the-process/34865)

<div class="topic-metadata">

**Author:** [@caonima](https://discuss.python.org/u/caonima)\
**Replies:** 5\
**Last updated:** [September 28, 2023, 5:31pm UTC](https://discuss.python.org/t/limiting-the-memory-usage-of-the-process/34865 "2023-09-28T17:31:01Z")

</div>

Is there a way to limit memory usage when running a script with the python process? Even though there is no problem with unused memory, it seems the garbage collector only does the bare minimum when the memory usage hit…

---

## [How to download an https:// URL in Windows 10?](https://discuss.python.org/t/how-to-download-an-https-url-in-windows-10/32635)

<div class="topic-metadata">

**Author:** [@davidfstr](https://discuss.python.org/u/davidfstr)\
**Replies:** 8\
**Last updated:** [September 2, 2023, 12:30am UTC](https://discuss.python.org/t/how-to-download-an-https-url-in-windows-10/32635 "2023-09-02T00:30:19Z")

</div>

I am trying to use the following code to download a simple https:// URL in Windows 10: import ssl from urllib.request import urlopen urlopen('https://xkcd.com/', context=ssl.create\_default\_context()) But that code cras…

---

## [Is there any other methods other create\_XXX\_buffer of ctypes to send a string via funcion parameter?](https://discuss.python.org/t/is-there-any-other-methods-other-create-xxx-buffer-of-ctypes-to-send-a-string-via-funcion-parameter/27813)

<div class="topic-metadata">

**Author:** [@kcvinker](https://discuss.python.org/u/kcvinker)\
**Replies:** 0\
**Last updated:** [June 13, 2023, 7:45pm UTC](https://discuss.python.org/t/is-there-any-other-methods-other-create-xxx-buffer-of-ctypes-to-send-a-string-via-funcion-parameter/27813 "2023-06-13T19:45:03Z")

</div>

Hi all, I am trying to make a DLL in D programming language. It has 3 type of strings. UTF-8 aka string, UTF-16 aka immutable wchar array for Windows, UTF-32 aka dstring. I know there is create\_unicode\_buffer & crea…

---

## [Looking for someone to build SpamBayes Outlook installer](https://discuss.python.org/t/looking-for-someone-to-build-spambayes-outlook-installer/26781)

<div class="topic-metadata">

**Author:** [@smontanaro](https://discuss.python.org/u/smontanaro)\
**Replies:** 7\
**Last updated:** [May 17, 2023, 3:03am UTC](https://discuss.python.org/t/looking-for-someone-to-build-spambayes-outlook-installer/26781 "2023-05-17T03:03:15Z")

</div>

This is my periodic (every few years) appeal for help. SpamBayes is a Bayesian spam filter developed years ago to separate the wheat from the chaff as it were. It still works well (running behind-the-scenes on mail.pyth…
