01 2025 档案

摘要:1. Open AI import os from openai import OpenAI client = OpenAI( api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted ) c 阅读全文
posted @ 2025-01-15 16:11 jiguanghover 阅读(5) 评论(0) 推荐(0) 编辑
摘要:1. 首先安装pnpm, brew install pnpm 2. 在terminal执行npm init 3. pnpm add @antiwork/shortest 4. touch shortest.config.ts, 内容如下: import { ShortestConfig } from 阅读全文
posted @ 2025-01-09 17:47 jiguanghover 阅读(47) 评论(0) 推荐(0) 编辑
摘要:1. Java 8下载 https://www.java.com/zh-CN/download/ 阅读全文
posted @ 2025-01-08 14:10 jiguanghover 阅读(3) 评论(0) 推荐(0) 编辑
摘要:最近升级了macos 15.2,结果导致外接显示器显示不正常,经常断掉或者黑屏,因此macos进行降级处理; 1. 首先在App Store下载Ventura 系统; 2. 准备一个16G的U盘,然后进行格式化并命名为HelloVolume; 3. 使用"终端"创建可引导安装器,sudo /Appl 阅读全文
posted @ 2025-01-08 09:22 jiguanghover 阅读(169) 评论(0) 推荐(0) 编辑
摘要:1. 在.zshrc中添加的环境变量不起作用 Answer: 需要把/etc/zshrc文件复制到 ~, 并命名为.zshrc,然后设置环境变量即可; 2. 创建python虚拟环境 python3 -m venv myvenv 2.1 python安装:pyenv install 3.12.3 2 阅读全文
posted @ 2025-01-07 13:13 jiguanghover 阅读(5) 评论(0) 推荐(0) 编辑