Title: Suggest the possible module in "python -m module" · Issue #145031 · python/cpython · GitHub
Open Graph Title: Suggest the possible module in "python -m module" · Issue #145031 · python/cpython
X Title: Suggest the possible module in "python -m module" · Issue #145031 · python/cpython
Description: Feature or enhancement Proposal: Now python has suggested the possible module name when ModuleNotFoundError raised. This issue is trying to make it also enable in "python -m module". The effect is like: ❯ python -m randon /Library/Framew...
Open Graph Description: Feature or enhancement Proposal: Now python has suggested the possible module name when ModuleNotFoundError raised. This issue is trying to make it also enable in "python -m module". The effect is ...
X Description: Feature or enhancement Proposal: Now python has suggested the possible module name when ModuleNotFoundError raised. This issue is trying to make it also enable in "python -m module". The ...
Opengraph URL: https://github.com/python/cpython/issues/145031
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggest the possible module in \"python -m module\"","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nNow python has suggested the possible module name when ModuleNotFoundError raised. This issue is trying to make it also enable in \"python -m module\". The effect is like:\n\n```console\n❯ python -m randon\n/Library/Frameworks/Python.framework/Versions/3.14/bin/python3: No module named 'randon'. Did you mean: 'random'?\n```\n\n\nChanging \"runpy.py\" can make it.\n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-145096\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/Locked-chess-official","@type":"Person","name":"Locked-chess-official"},"datePublished":"2026-02-20T02:50:58Z","url":"https://github.com/python/cpython/issues/145031"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:15b33a7f-9b6c-0765-8cf4-403b1ebbbe9b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E526:1AE20C:4002658:50FE98B:6B020F85 |
| html-safe-nonce | fa53de99399469035a9a733c3f1f45c9ce262ca7a58df012a5560e2de50d2873 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTI2OjFBRTIwQzo0MDAyNjU4OjUwRkU5OEI6NkIwMjBGODUiLCJ2aXNpdG9yX2lkIjoiMzYyNjU5MDc1Nzg0NDAyOTMxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 157c291fd840b92cadd30fb674ca5076945dd2356c99eeb237eab49626a11f0a |
| hovercard-subject-tag | issue:3966256676 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/145031/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5acc00c58cfb4f527519baf6b65d0f82a9cdec2c30ee7810618eb9ccda05dc3/python/cpython/issues/145031 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5acc00c58cfb4f527519baf6b65d0f82a9cdec2c30ee7810618eb9ccda05dc3/python/cpython/issues/145031 |
| og:image:alt | Feature or enhancement Proposal: Now python has suggested the possible module name when ModuleNotFoundError raised. This issue is trying to make it also enable in "python -m module". The effect is ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Locked-chess-official |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width