runtime文件夹下用cmd运行python,出现: No module named 'encodings'

Open
#99 0 comments 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from skywind3000/PyStand

All issues in skywind3000/PyStand

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.