Skip to content

Instantly share code, notes, and snippets.

1. 安装依赖包

python -m pip install -U 'anthropic[vertex]'

2. Enable所需要的大模型

跳转到对应的模型界面Vertex->Model Garden->[选择需要激活的模型],填写对应资料,最后点击Enable

执行wsl的命令报如下错误

WSL 正在完成升级... Could not write value to key \SOFTWARE\Classes\Drive\shell\WSL. Verify that you have sufficient access to that key, or contact > your support personnel. 更新失败(退出代码: 1603)。 Error code: Wsl/CallMsi/Install/ERROR_INSTALL_FAILURE

解决方法如下

参考microsoft/WSL#11697 (comment)

@onemore118
onemore118 / 安装和修改pnpm的全局安装包路径.md
Last active June 18, 2024 02:33
如何修改pnpm全局安装包的路径
@onemore118
onemore118 / Manim中文问题.md
Last active June 6, 2024 03:30
修复Manim中文无法编译问题:ValueError: latex error converting to dvi.

前提

  1. 安装Manim Community版本
  2. 安装MikTex
  3. 进入MikTex,安装宏包(Package): ctex
  4. 重启电脑

代码

  1. 进入anaconda\envs\<你的anaconda环境名称>\Lib\site-packages\manim\utils\tex_file_writing.py 找到如下代码,大概在296行左右
@onemore118
onemore118 / Win11启动虚拟化技术.md
Created May 31, 2024 06:20
AMD主板,windows如何启动虚拟化技术
  1. 先进入“控制面板”→”程序和功能”→”启动或关闭windows功能”

    确保“hyper-V” “虚拟机平台” 被勾选

  2. 执行下面命令

     bcdedit /set hypervisorlaunchtype Auto