宝塔面板部署python项目

  • 关闭项目管理器,重新打开,检查服务器是否正常运行,如状态显示已暂停,检查日志。
    正常运行
    如果日志中有No Module named xx的报错则在step5中添加相应的module。如果有TypeError: Descriptors cannot not be created directly.
    If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
    If you cannot immediately regenerate your protos, some other possible workarounds are:
    1.Downgrade the protobuf package to 3.20.x or lower.
    2.Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
    在终端中输入:

    pip3 uninstall protobuf pip3 install protobuf==3.19.0 

    或者在step5中删除protobuf,再安装3.19.0的版本。protobuf版本在3.19.0以下即可。

  • 原文链接:https://blog.csdn.net/qq_45707440/article/details/125122602

    © 版权声明
    THE END
    喜欢就支持一下吧
    点赞5 分享