{"id":22843652,"url":"https://github.com/wojiushixiaobai/python-embed-win64","last_synced_at":"2026-03-04T05:06:05.841Z","repository":{"id":267074454,"uuid":"863890184","full_name":"wojiushixiaobai/Python-Embed-Win64","owner":"wojiushixiaobai","description":"python embed pip tk","archived":false,"fork":false,"pushed_at":"2025-02-05T02:17:27.000Z","size":11,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T20:41:07.771Z","etag":null,"topics":["embedding","pip","python","tkinter"],"latest_commit_sha":null,"homepage":"https://github.com/python/cpython","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wojiushixiaobai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-27T05:34:02.000Z","updated_at":"2025-01-10T14:45:36.000Z","dependencies_parsed_at":"2024-12-08T06:25:21.656Z","dependency_job_id":"372bb5dd-303b-4dea-a5e3-b2f0bec1883a","html_url":"https://github.com/wojiushixiaobai/Python-Embed-Win64","commit_stats":null,"previous_names":["wojiushixiaobai/python-embed-win64"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojiushixiaobai%2FPython-Embed-Win64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojiushixiaobai%2FPython-Embed-Win64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojiushixiaobai%2FPython-Embed-Win64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojiushixiaobai%2FPython-Embed-Win64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wojiushixiaobai","download_url":"https://codeload.github.com/wojiushixiaobai/Python-Embed-Win64/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837279,"owners_count":21169373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embedding","pip","python","tkinter"],"created_at":"2024-12-13T02:17:05.434Z","updated_at":"2026-02-04T05:10:59.121Z","avatar_url":"https://github.com/wojiushixiaobai.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-Embed-Win64\n\n- 添加了 **pip** 和 **tkinter** 的 Embedding Python\n\n## 配置环境\n\n修改 **python\\*._pth** 文件\n```shell\ncat .\\python*._pth\n\npython311.zip\npackages\n.\n\n# Uncomment to run site.main() automatically\nimport site\n```\n\n也可以通过指定 **PYTHONPATH** 环境变量来移除 **python\\*._pth** 文件\n```shell\n# cd 到 python.exe 所在目录, 或者使用绝对路径\n# 如果需要写入到系统环境变量, 一定要使用绝对路径\n$Env:PYTHONPATH = \".\\packages;.\\Lib\\site-packages\"\n```\n\n*大多数的时候单项目修改 **python\\*._pth** 文件即可。*\n*不使用 **python\\*._pth** 是为了解决工作目录的问题，也就是你在外部调用 **python** 时会出现找不到模块的问题。*\n\n## 运行 Python\n\n**pip** 模块\n```shell\n.\\python.exe -m pip list\n\nPackage    Version\n---------- -------\npip        24.0\nsetuptools 65.5.0\n\n[notice] A new release of pip is available: 24.0 -\u003e 24.2\n[notice] To update, run: python.exe -m pip install --upgrade pip\n```\n\n**tkinter** 模块\n```shell\n.\\python.exe\nPython 3.11.10 (tags/v3.11.10:0c47759, Sep 27 2024, 21:18:53) [MSC v.1941 64 bit (AMD64)] on win32\n\u003e\u003e\u003e import tkinter as tk\n\u003e\u003e\u003e tk.TkVersion\n8.6\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwojiushixiaobai%2Fpython-embed-win64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwojiushixiaobai%2Fpython-embed-win64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwojiushixiaobai%2Fpython-embed-win64/lists"}