[安装并使用Milvus_CLI]

使用python安装

shell 复制代码
pip install milvus-cli

windows问题

可能出现如下报错:

shell 复制代码
(teach) C:\Users\12901\milvus>milvus_cli
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "D:\miniconda3\envs\teach\Scripts\milvus_cli.exe\__main__.py", line 4, in <module>
  File "D:\miniconda3\envs\teach\Lib\site-packages\milvus_cli\scripts\milvus_cli.py", line 1, in <module>
    from .connection_cli import *
  File "D:\miniconda3\envs\teach\Lib\site-packages\milvus_cli\scripts\connection_cli.py", line 2, in <module>
    from .helper_cli import show, getList
  File "D:\miniconda3\envs\teach\Lib\site-packages\milvus_cli\scripts\helper_cli.py", line 10, in <module>
    from utils import WELCOME_MSG, EXIT_MSG, Completer, getPackageVersion
  File "D:\miniconda3\envs\teach\Lib\site-packages\milvus_cli\utils.py", line 1, in <module>
    import readline
ModuleNotFoundError: No module named 'readline'

提示需要安装readline

但是当你使用pip install readline时,又出现如下报错:

shell 复制代码
error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error: this module is not meant to work on Windows
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

错误显示readline 是属于linux的,而不是windows

因此需要使用如下命令安装:

shell 复制代码
pip install pyreadline3

使用

在命令行输入milvus_cli

就会出现如下界面,代表安装成功

shell 复制代码
  __  __ _ _                    ____ _     ___
 |  \/  (_) |_   ___   _ ___   / ___| |   |_ _|
 | |\/| | | \ \ / / | | / __| | |   | |    | |
 | |  | | | |\ V /| |_| \__ \ | |___| |___ | |
 |_|  |_|_|_| \_/  \__,_|___/  \____|_____|___|

Milvus cli version: 1.0.2
Pymilvus version: 2.5.9

Learn more: https://github.com/zilliztech/milvus_cli.
相关推荐
2301_794333915 天前
Docker Compose 运行 Milvus (Mac) 并与 python 连接测试
macos·docker·milvus
勇往直前plus9 天前
Milvus快速入门以及用 Java 操作 Milvus
java·spring boot·embedding·milvus
乔公子搬砖17 天前
构建企业级RAG系统:基于Milvus的模块化实现与全流程解析
大数据·人工智能·python·ai·milvus·rag·向量库
runfarther17 天前
Milvus 向量数据库开发实战指南
python·ai·大语言模型·数据库开发·milvus
耳东哇20 天前
在使用spring ai进行llm处理的rag的时候,选择milvus还是neo4j呢?
人工智能·neo4j·milvus
Code_Geo21 天前
向量库Qdrant vs Milvus 系统详细对比
milvus·向量库·qdrant
LiRuiJie21 天前
基于LangChain + Milvus 实现RAG
python·langchain·milvus·rag
秋天枫叶3524 天前
【AI应用】修改向量数据库Milvus默认密码
运维·服务器·数据库·ubuntu·milvus·milvus_cli
计算机小手25 天前
基于 Flask 与 Milvus 构建高效图片搜索引擎,可通过API接入,支持Docker一键部署
经验分享·docker·flask·开源软件·milvus
linweidong1 个月前
如何设计和实施高效的向量化数据检索解决方案
人工智能·机器学习·大模型·agent·milvus·faiss·向量索引