Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nb安装会出现notfound #7

Closed
yokoyamamio opened this issue May 30, 2024 · 6 comments
Closed

nb安装会出现notfound #7

yokoyamamio opened this issue May 30, 2024 · 6 comments

Comments

@yokoyamamio
Copy link

No description provided.

@Ljzd-PRO
Copy link
Owner

后面再加 -i https://pypi.org/simple 试试?

@yokoyamamio
Copy link
Author

OK我试试

@yokoyamamio
Copy link
Author

yokoyamamio commented May 30, 2024

`root@ECS1033:~/qb2/qb/.venv/lib/python3.10/site-packages#` nb plugin install nonebot-plugin-dg-lab-play -i https://pypi.org/simple
Package nonebot-plugin-dg-lab-play not found.``

@yokoyamamio
Copy link
Author

还是不行(

@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented May 30, 2024

对照了一下,需要等 nonebot 发布新版本了才能用 nb-cli 安装。目前需要手动进入创建好的机器人项目的虚拟环境里,用 pip 安装。

在机器人项目目录下运行

source activate .venv/bin/activate

然后运行

pip install nonebot-plugin-dg-lab-play

之后用

deactivate

退出虚拟环境

@Ljzd-PRO Ljzd-PRO pinned this issue May 30, 2024
@Ljzd-PRO
Copy link
Owner

对照了一下,需要等 nonebot 发布新版本了才能用 nb-cli 安装。目前需要手动进入创建好的机器人项目的虚拟环境里,用 pip 安装。

在机器人项目目录下运行

source activate .venv/bin/activate

然后运行

pip install nonebot-plugin-dg-lab-play

之后用

deactivate

退出虚拟环境

nonebot 新版本已发布(https://github.com/nonebot/nonebot2/releases/tag/v2.3.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants