# 凯文男朋友chatgpt模块安装

By [mango mango](https://paragraph.com/@mango-mango) · 2023-03-26

---

![](https://storage.googleapis.com/papyrus_images/5e496f172a409ad7464e852113cf0b3550d3988275962cd130dd985b800a676a.jpg)

**下载Python 这个版本**[**https://www.python.org/downloads/release/python-379/**](https://www.python.org/downloads/release/python-379/)

![](https://storage.googleapis.com/papyrus_images/53f25ac2a9682a25d6466571f6809ac871ec3f245ad2acde3a2aecc0f469a8d0.png)

**开始窗口=>控制面板=>搜索输入env=>编辑账户的环境变量**

**系统变量=>path=>编辑**

![](https://storage.googleapis.com/papyrus_images/f7e456885f154fc7981c858c611954e7cd3db921f6c6ebbec460b77838a8cdcc.png)

**添加Python安装目录，和Python\\Scripts 目录，点击确认**

[WeChatSetup3.6.0.18.exe](https://webcdn.m.qq.com/spcmgr/download/WeChat3.6.0.18.exe)

**安装3.6版本微信**

![](https://storage.googleapis.com/papyrus_images/134dead9dd50aab125e30ffcbd3b228ae0b4909c4c262a4f81f631453b24bbab.png)

**打开cmd，输入pip install ntchat回车**

**输入pip install openai回车**

[https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys)

**注册并获取openAI 的api key**

[https://github.com/kosmosmo/wechat\_chatgpt\_hook](https://github.com/kosmosmo/wechat_chatgpt_hook)

**下载代码并解压**

![](https://storage.googleapis.com/papyrus_images/77ec9aaa0d95164a1ec9718569b2edc4a2e94ceb2ea1da9ecd3191161e335b06.png)

**编辑args.txt**

![](https://storage.googleapis.com/papyrus_images/7e056e66c1cc0d343ad1602a368cd901fc0e9da44313b8ccc2cda24f4358d574.png)

**运行run.bat并登陆微信号**

---

*Originally published on [mango mango](https://paragraph.com/@mango-mango/chatgpt)*
