宵云客 发表于 2024-9-3 12:19:30

【已完成】python项目,已安装pandas模块,但Gunicorn日志“No m

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:linux面板9.1.0
系统版本:CentOS 7.9.2009 x86_64(Py3.7.9)
‘’
问题描述:建python项目,版本3.11.4,建完后手工添加模块'pandas'完成,但项目无法运行,查Gunicorn日志报"No Moudle"错误
相关截图(日志、错误):data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAj8AAABHCAIAAABnILHlAAAUq0lEQVR4Ae1d67mjug69PaXGnUpIF6QF0gIFTA/nfpKsl8EJJJDn4sdsY2w9lmQtTDLhf//dOg44gAAQAAJAAAi8GQL/u0Ve/72ZwTAHCAABIAAEgMAB7IUkAAJAAAgAgc9DAOz1eTGDxUAACAABIAD2Qg4AASAABIDA5yEA9vq8mMFiIAAEgAAQAHshB4AAEAACQODzEAB7fV7MYDEQAAJAAAiAvZADQAAIAAEg8HkIgL0+L2awGAgAASAABLZkr+7yLx2XLuLLV4fU9dePOmE4xbHr2yxqPB8P1piR0Q3//j2qaEZs7HqCiqjusfaJ8EgRacm7hmprzgb9nlFjf3xc3t1eLAfqcSPvk0AWcm5b4z45B0pgOWg11ceRVuwmsaglHzzWasCjih6FYmLidh3H83jbO05XAWPnqrWdY8+VtDV7ZcaKvsywV7m8RcXnSFOMrRF1S/s03M6Y6axVPU9Qscqeq4O7y7+5CjU35+66Pydsbd+ipb5E6L1erABqiRl7jKFKPfZ/h4M1HtJCLDWXGzuyV2UvlYt2MakGz59+OnsVr7Yoj/MAfXzv89irDdUm4TEh1qgUthZkNeyR0yeoeMS8PJdKOde73P2GZ5ux132+fQRQZqQ17nO2zHp1Jm/jxUMQTCdvQKgqdE1Ktwqaygp/14gN0z62+Qz2IkzLMfucai48lL7lmLsHXI83CVTtM2uDlutwmlm0ZPylm0nc6TZrVxV8I1kQsXtSscEvqYP0/Gfs/whYOaZPHsSvhKPLiU+HXEgMBE/vJUjDScY4F/I+u1YtGulfOcyLQ9k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GF9fCrJWNaMceoxMn+hUdxIiL1bMWQ02wMJxa+8V3CGJAZxmLIpm06WWtDJKr0//NlWQGV64bZg2TDU15vZepspw4J7KWRu1qGFKZbRLJqt8KXl/BHMZe5EKf4LSsDarW2Q6BgEBRWB/9mIKMaqIOR2WEK1w3TClrQaPz5/BzD10omU286FUWjPdZRwupUDkz71yfRH5vvAKVMFaBY//Ro9kF1huJ0Mdz16EqhoLQeRaWtXhqxNBVNJd1ZRwLdSd0NuORfvhJE9ne7wER5FVO5naDeMwzH7uRcP0QXElQU8NcPNFHwxSWF+UUWrc9C9BNPfAIHkqeX5971V9KBs0uQpGIJJiGLWkadjS4GBhSmZJwuu3XO2kjUtS8n8mf1K2LDEcY4CAI7AVeyWeEPGUsiH1uRyHikyDyiJk3qK2PUag1Jfjwt+MmpEjl3O90ElaR7JVvErVJN4k6fjJunLDVFTYVDl6peXW5ors/RMvzNPGtzOGjqxV78RytdZpfjV7lR2JSlL51x5Oso93slcB2Zx1QDJQE0Spwyoszao3JeV2hx0JXuyeUbOWGkRuidlcHCmIj/1Jw6pUZG6G9SIEplEKWBmA+Tu9basaV0iXH77ZikvyX3hWkTay6ZarkB8Ly0nLyVmUXDq982i61rAU3UCgicBW7NVUgAtAAAi8GwJGme9mGOwBAssRAHstxwojgcCXIAD2+pJA/rYbYK/fjj+8/0kEwF4/GfZvcxrs9W0RhT9AAAgAgV9AAOz1C1GGj0AACACBb0MA7PVtEYU/QAAIAIFfQOD/et+oWiyKK+AAAAAASUVORK5CYII=

运维技术阿闯 发表于 2024-9-3 14:23:21

您好,面板是有自己的虚拟环境的,你这边手工添加的应该是您本地的,而不是虚拟环境的python,使用btpython命令来看一下

宵云客 发表于 2024-9-3 14:32:35

是通过面版 对应python项目“模块”功能项添加的,不是手工本地添加的

宵云客 发表于 2024-9-3 14:36:46


宵云客 发表于 2024-9-3 14:47:46


运维技术阿闯 发表于 2024-9-3 15:12:09

宵云客 发表于 2024-9-3 14:47


您好,尝试btpip install pandas在安装看一下

宵云客 发表于 2024-9-3 15:40:59

btpip install pandas也仅是安装在BT的虚拟环境下,这个环境下pandas已经是ok的(btpip list 显示 已经安装pandas 1.3.5),我自己项目虚拟环境安装的pands 2.2.2

运维技术阿闯 发表于 2024-9-3 16:10:08

宵云客 发表于 2024-9-3 15:40
btpip install pandas也仅是安装在BT的虚拟环境下,这个环境下pandas已经是ok的(btpip list 显示 已经安装 ...

有的话,这个是没有问题的,您检查一下您项目情况,在调用pandas的地方

宵云客 发表于 2024-9-3 16:32:16

谢谢,问题解决了:原因还是建python项目时,不知何故虚拟环境没有成功建立,但BT面板表面没给出任何提示,让人以为是建成功了,解决的办法是删除已经建的虚拟环境文件,再删除项目,重新搭建python项目,检查的方法是去看vhost/logs/对应的文件,有虚拟环境建立完成的logs才算成功,这样后续如果需要添加其它的模块就没有问题了

运维技术阿闯 发表于 2024-9-3 16:41:59

问题解决了就好,后续有问题可以在开新帖呢,这边就闭贴了,祝您生活愉快
页: [1]
查看完整版本: 【已完成】python项目,已安装pandas模块,但Gunicorn日志“No m