Replies: 1 comment 3 replies
-
|
你第一种方法是不是没有进到虚拟环境中运行 pip freeze?按理来说这个方法应该是很稳定的,不过也有可能是因为你本地和服务器系统不同导致的问题。 第二种方法需要你将所需的插件都通过 poetry add 添加到 pyproject 中才能正常使用,具体可以去看看 poetry 的文档。 我个人推荐使用 Docker 部署。https://nonebot.dev/docs/best-practice/deployment |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
在本地运行了nonebot2项目,现在一直想移植到服务器上,但是试了很多方法都不行
pip freeze > requirements.txt,然后我将除虚拟环境外的nonebot2项目打包复制到服务器上,创建虚拟环境之后使用pip install -r requirements安装依赖之后,发现关于nonebot-plugin-xxx之类的包都没安装成功,自然也就运行不起来了portry管理项目,首先我在本地项目使用poetry init,后面我又生成了poetry.lock文件,但是在服务器安装的时候使用poetry install安装的时候也是跟上方同样的原因,会缺少很多包依赖有没有大佬能推荐一套方便移植的办法,不然就只能本地跑很苦恼
Beta Was this translation helpful? Give feedback.
All reactions