找回密码
 立即注册
首页 业界区 安全 在Mac安装阿里巴巴新神器copaw

在Mac安装阿里巴巴新神器copaw

吕梓美 1 小时前
仓库地址: 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

结果这条命令我都执行不了:
  1. pip install copaw
  2. zsh: command not found: pip
复制代码
因为我本地的是pip3。但是也不行:
  1. pip3 install copaw
  2. error: externally-managed-environment
  3. × This environment is externally managed
  4. ╰─> To install Python packages system-wide, try brew install
  5.     xyz, where xyz is the package you are trying to
  6.     install.
  7.    
  8.     If you wish to install a Python library that isn't in Homebrew,
  9.     use a virtual environment:
  10.    
  11.     python3 -m venv path/to/venv
  12.     source path/to/venv/bin/activate
  13.     python3 -m pip install xyz
  14.    
  15.     If you wish to install a Python application that isn't in Homebrew,
  16.     it may be easiest to use 'pipx install xyz', which will manage a
  17.     virtual environment for you. You can install pipx with
  18.    
  19.     brew install pipx
  20.    
  21.     You may restore the old behavior of pip by passing
  22.     the '--break-system-packages' flag to pip, or by adding
  23.     'break-system-packages = true' to your pip.conf file. The latter
  24.     will permanently disable this error.
  25.    
  26.     If you disable this error, we STRONGLY recommend that you additionally
  27.     pass the '--user' flag to pip, or set 'user = true' in your pip.conf
  28.     file. Failure to do this can result in a broken Homebrew installation.
  29.    
  30.     Read more about this behavior here: <https://peps.python.org/pep-0668/>
  31. 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.
  32. hint: See PEP 668 for the detailed specification.
复制代码
难道让我用brew安装?
结果
  1. Warning: No available formula with the name "copaw". Did you mean copa or opa?
  2. ==> Searching for similarly named formulae and casks...
  3. ==> Formulae
  4. copa          opa
复制代码
问了AI,让我用pipx:
  1. brew install pipx
  2. pipx ensurepath
  3. Success! Added /Users/your/.local/bin to the PATH environment variable.
复制代码
然后重新安装,结果又报错:
[code]pipx install copawpip seemed to fail to build package:    python-dotenv>=1.0.0Some 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.10,=3.10,=3.10,=3.10,=3.10,=3.10,=3.10,=3.10,=3.10,=3.6,=3.6,=3.6,=3.6,

相关推荐

您需要登录后才可以回帖 登录 | 立即注册