Closed as not planned
Description
This is due to a "bug" in the Swift installation procedure for Windows 10. Below, after describing the issue, I have a solution. I am new at Swift, and other thoughts are welcome!
Environment
build number: Swift 5.6.1
OS: Windows 10 desktop computer
Issue Description
On Windows 10, lldb gets error: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding. error: ModuleNotFoundError: No module named 'encodings'
Test Case
After an install of Swift on Windows 10, run 'lldb Factorial' as shown on Swift - Getting Started > Using the LLDB Debugger. That elicits the error above.
Cause
The env var PYTHONPATH is missing the Python directory: (your-Python-root)\Lib.
Solution
See notes on PYTHONPATH in #58438.
Metadata
Metadata
Assignees
Labels
Platform: WindowsA deviation from expected or documented behavior. Also: expected but undesirable behavior.Resolution: Was resubmitted in the appropriate repository rather than transferredBug → documentation: Inaccurate infoArchive • This issue was supposed to belong in the swift-org-website repository