Failed to find real location of `python.exe` on a RAM disk
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
# Add a code block here, if required
Starting with 13.0 Python I get the warning "failed to find real location of python.exe" but only if I run it from a ram disk, never when i run it from a network share. I wrote an editor in Python back in 2017 and it was very fast except for startup, which took as long as 700 msec. I knew Microsoft C was fast in part because its DLLs were preloaded into memory. One day I was watching a Dave Plummer video on YouTube and he mentioned ram drives which I hadn't thought about since the days of MS-DOS. I found and installed IMDISK on Windows 10, and later Windows 11. The editor, and everything else, runs instantly and I've never had any problems with Python running from a ram disk. So, I'm writing to see if you guys could either make an exception for ram drives, or provide a way to turn off that warning message. Thanks in advance.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
未指定來源檔案或測試。首先使用 IMDISK RAM 磁碟在 Windows 上透過 CPython 3.13 重現該警告,然後找出解析 python.exe 並發出訊息的程式碼。當 RAM 磁碟情況獲得適當處理,或可以在不影響其他啟動情境的情況下停用該警告時,即可視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- operating-systems
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 需要釐清
- 新手友好度
- 42/100