如何在google colab中获取prototxt?

2024-10-16 20:53:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用它进行图像的面罩检测测试。

!pip install ProtoText
Collecting ProtoText
  Using cached https://files.pythonhosted.org/packages/72/50/306035a7314df99686177e16e4f197bf310b1bcabdce7f7d8671342ca4b0/ProtoText-0.3.5.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Tags: installpiphttpsorg图像packagestarfiles
1条回答
网友
1楼 · 发布于 2024-10-16 20:53:05

您正在使用的原型文本模块与https://github.com/XericZephyr/prototext关联

虽然没有明确提到,但我发现这个模块适用于python2。 默认情况下,Google colaboratory提供python3,而Google colaboratory不推荐使用python2。 虽然您可以使用这个链接在google colaboratory中使用python2

https://colab.research.google.com/notebook#create=true&language=python2

您可以使用!python version检查版本,然后使用!pip install ProtoText

应该行得通

相关问题 更多 >