NoneBotNoneBotHome
  • Next
  • 指南

    安装

    安装 NoneBot CLI

    创建项目

    创建 NoneBot 项目

    启动 Bot

    启动 Bot

    项目管理

    项目管理

    CLI 自身管理

    CLI 自身管理

    项目脚本配置

    项目脚本配置

    CLI 插件配置

    CLI 插件配置

    Shell 自动补全

    Shell 自动补全

  • API
  • NoneBot
NoneBotNoneBot
  • 指南
  • API
  • NoneBot
NoneBotNoneBot
  • nb_cli.compat
  • nb_cli.consts
  • nb_cli.exceptions
  • nb_cli.extensions
  • nb_cli.i18n
  • nb_cli
  • cli
  • config
  • handlers
    • nb_cli.handlers.adapter
    • nb_cli.handlers.data
    • nb_cli.handlers.driver
    • nb_cli.handlers
    • nb_cli.handlers.meta
    • nb_cli.handlers.pip
    • nb_cli.handlers.plugin
    • nb_cli.handlers.process
    • nb_cli.handlers.project
    • nb_cli.handlers.reloader
    • nb_cli.handlers.script
    • nb_cli.handlers.signal
    • nb_cli.handlers.store
    • nb_cli.handlers.venv
  • log

nb_cli.handlers.venv

def detect_virtualenv(cwd=None)#

  • 参数

    • cwd (Path | None)
  • 返回

    • str | None

async def create_virtualenv(venv_dir, prompt=None, *, python_path=None)#

  • 参数

    • venv_dir (Path)

    • prompt (str | None)

    • python_path (str | None)

  • 返回

    • untyped
Edit this page
Previous
« nb_cli.handlers.store
Next
nb_cli.log »
  • def detect_virtualenv(cwd=None)
  • async def create_virtualenv(venv_dir, prompt=None, *, python_path=None)

Footer

NoneBotNoneBot

CLI for NoneBot 2

GitHub

Learn

  • 介绍
  • 安装

NoneBot Team

  • NoneBot V1
  • NoneBot V2

Copyright © 2025 NoneBot. All rights reserved.Powered by

Deployed by