runtime文件夹下用cmd运行python,出现: No module named 'encodings'
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- operating-systems, tooling
Research direction
The report names the runtime folder, running Python from cmd, and Windows 7, but no source file or test. First reproduce the missing encodings error from the runtime folder and compare the working and failing environments. Done means identifying the cause and documenting a reproducible resolution.
Written by the indexing model from the issue text.
Description
出现这个:
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
- 同样的文件,同样是win7电脑,一台运行是没问题的,一台就出现这个错误。
- 我都看了两台电脑的环境变量,都没有python_home之类的,网上说是环境变量问题,我看两天都没有,应该不是环境变量原因
最后,有懂行的解决下嘛,感谢啦!
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from skywind3000/PyStand
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
skywind3000/PyStand#111 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
skywind3000/PyStand#109 · 5 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
skywind3000/PyStand#105 · 3 reactions ·
-
文档拉胯 Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
skywind3000/PyStand#104 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
skywind3000/PyStand#102 · 5 comments ·
All issues in skywind3000/PyStand
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·