惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
博客园 - 司徒正美
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
量子位
罗磊的独立博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
小众软件
小众软件
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
大猫的无限游戏
大猫的无限游戏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
Simon Willison's Weblog
Simon Willison's Weblog
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cyber Attacks, Cyber Crime and Cyber Security
博客园_首页
博客园 - 叶小钗
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
T
Tailwind CSS Blog
IT之家
IT之家
博客园 - 聂微东
Spread Privacy
Spread Privacy
V2EX - 技术
V2EX - 技术
S
Security Affairs
宝玉的分享
宝玉的分享
V
V2EX
C
Cisco Blogs
博客园 - Franky
美团技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
S
Securelist
J
Java Code Geeks
Webroot Blog
Webroot Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
WordPress大学
WordPress大学
W
WeLiveSecurity
T
Threatpost
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志

博客园 - 大卫小东(Sheldon)

Rust 推荐使用宏而非普通函数的场景 华为公司发布半导体演进新范式 - “韬(τ)定律”(Tau Law) 霍尔定理和最大流算法 入门 Rudist v0.5.1 发布:AI 驱动的 Redis 客户端,更快、更直观 Rudist 0.4.3 发布:让 AI Agent 替你操作 Redis 集成AI 的 Redis 客户端 Rudist发布新版了 大模型智能体 (agent)简易流程介绍 GIM 2.0 发布:真正让 AI 提交消息可定制、可控、可项目级优化 postgreSQL 中的自定义操作符 SQL查询中的窗口函数(主要以 PostgreSQL 为例) SQL中的CTE用法初步(Common Table Expression公共表表达式) 公司新来的00后老板让我们把数据库改成PostgreSQL,大家怒了😂 革命你的 Git 提交消息 - GIM 1.8.0 发布了! 使用JMH对远程接口进行压测 如何用Java25编译Java17的项目 写了一个BBP算法的实现库,欢迎讨论 智能生成git提交消息工具 GIM 发布 1.7 版本了 面向 Git 用户的 jujutsu 使用入门 GIM 1.5发布了! 支持Windows系统了 GIM 1.4 发布了 (附使用 mkdocs 快速制作静态站点流程)
在Mac安装阿里巴巴新神器copaw
大卫小东(Sheldon) · 2026-03-03 · via 博客园 - 大卫小东(Sheldon)

仓库地址: https://github.com/agentscope-ai/CoPaw
官方简介:Your Personal AI Assistant; easy to install, deploy on your own machine or on the cloud; supports multiple chat apps with easily extensible capabilities.


安装过程

这里记录我的安装过程,因为坑太多了。

本来是用docker安装的,非常简单快捷;但是安装好以后发现在容器里面它的权限太低了,几乎啥也干不了,所以重新本地安装

1. pip install copaw

结果这条命令我都执行不了:

pip install copaw
zsh: command not found: pip

因为我本地的是pip3。但是也不行:

pip3 install copaw
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a Python library that isn't in Homebrew,
    use a virtual environment:
    
    python3 -m venv path/to/venv
    source path/to/venv/bin/activate
    python3 -m pip install xyz
    
    If you wish to install a Python application that isn't in Homebrew,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. You can install pipx with
    
    brew install pipx
    
    You may restore the old behavior of pip by passing
    the '--break-system-packages' flag to pip, or by adding
    'break-system-packages = true' to your pip.conf file. The latter
    will permanently disable this error.
    
    If you disable this error, we STRONGLY recommend that you additionally
    pass the '--user' flag to pip, or set 'user = true' in your pip.conf
    file. Failure to do this can result in a broken Homebrew installation.
    
    Read more about this behavior here: <https://peps.python.org/pep-0668/>

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

难道让我用brew安装?
结果

Warning: No available formula with the name "copaw". Did you mean copa or opa?
==> Searching for similarly named formulae and casks...
==> Formulae
copa          opa

问了AI,让我用pipx

brew install pipx
pipx ensurepath
 
Success! Added /Users/your/.local/bin to the PATH environment variable.

然后重新安装,结果又报错:

pipx install copaw

pip seemed to fail to build package:
    python-dotenv>=1.0.0

Some possibly relevant errors from pip install:
    ERROR: Ignored the following versions that require a different python version: 0.0.2 Requires-Python >=3.10,<=3.13; 0.0.2b1 Requires-Python >=3.10,<=3.13; 0.0.2b2 Requires-Python >=3.10,<=3.13; 0.0.3 Requires-Python >=3.10,<3.14; 0.0.3b1 Requires-Python >=3.10,<3.14; 0.0.3b2 Requires-Python >=3.10,<3.14; 0.0.4 Requires-Python >=3.10,<3.14; 0.0.4b1 Requires-Python >=3.10,<3.14; 0.0.4b2 Requires-Python >=3.10,<3.14; 0.0.4b3 Requires-Python >=3.10,<3.14; 1.7.0 Requires-Python >=3.6,<3.10; 1.8.0 Requires-Python >=3.6,<3.10; 1.8.1 Requires-Python >=3.6,<3.10; 1.9.0 Requires-Python >=3.6,<3.10
    ERROR: Could not find a version that satisfies the requirement onnxruntime<1.24 (from copaw) (from versions: none)
    ERROR: No matching distribution found for onnxruntime<1.24

Error installing copaw.

继续问AI,说python版本太高了...
降低版本:

brew install python@3.11

Python is installed as
  /usr/local/bin/python3.11

继续安装,终于成功了!

pipx install --python /usr/local/bin/python3.11 copaw
  installed package copaw 0.0.4, installed using Python 3.11.14
  These apps are now globally available
    - copaw
⚠️  Note: '/Users/your/.local/bin' is not on your PATH environment variable. These apps will not be globally accessible until your PATH is updated. Run `pipx ensurepath` to automatically add it,
    or manually modify your PATH in your shell's config file (e.g. ~/.bashrc).
done! ✨ 🌟 ✨

2. copaw init --defaults

你猜怎么,报错。

你也许会说:上面不是说了不能直接用嘛!
还是你聪明:

copaw init --defaults
zsh: command not found: copaw

于是

pipx ensurepath
source ~/.zshrc
copaw init --defaults

终于好了!