[安装并使用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.
相关推荐
领航猿1号5 天前
Langchain 1.0.2 从入门到精通(含基础、RAG、Milvus、Ollama、MCP、Agents)
langchain·agent·milvus·rag·mcp·langchain 1.0
Knight_AL6 天前
Docker 部署 Milvus 并连接现有 MinIO 对象存储
docker·eureka·milvus
码农阿豪6 天前
基于Milvus与混合检索的云厂商文档智能问答系统:Java SpringBoot全栈实现
java·spring boot·milvus
GeminiJM6 天前
亿级向量检索:Elasticsearch vs. Milvus,性能鸿沟与架构抉择
elasticsearch·架构·milvus
福大大架构师每日一题8 天前
milvus v2.6.9 发布:支持主键搜索、段重开机制、日志性能全面提升!
android·java·milvus
Lkygo11 天前
milvus快速入门(包含图片搜索)
milvus
molaifeng11 天前
告别大模型幻觉:深度解析 RAG 文档切割艺术与 Milvus 高性能实战
milvus·rag
storyseek13 天前
关于Milvus向量数据库的基础
数据库·milvus
Zilliz Planet14 天前
熠智AI+Milvus:从Embedding 到数据处理、问题重写,电商AI客服架构怎么搭?
人工智能·架构·embedding·milvus
weixin_4624462314 天前
Milvus + LangChain + Ollama 搭建生产级 RAG(含 Tag / Metadata 解析)
langchain·milvus·tag·ollama