【问题标题】:I am in need to import src library. I have used pip install src. but an error use to appear我需要导入 src 库。我用过 pip install src。但会出现错误
【发布时间】:2021-04-18 20:55:03
【问题描述】:

我正在使用 Colab 笔记本构建分割模型。我需要导入src 库。我用过pip install src。但是出现错误,我已经将包下载到我的磁盘上,但我不知道如何将它插入到要使用的笔记本上。

错误

Downloading https://files.pythonhosted.org/packages/9a/2b/a6ccfc80af698319c54f00da05f6c798cf72291938893f8bd3f730c2daf9/src-0.0.7.zip
Building wheels for collected packages: src
  Building wheel for src (setup.py) ... error
  ERROR: Failed building wheel for src
  Running setup.py clean for src
Failed to build src
Installing collected packages: src
    Running setup.py install for src ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o7x6uewa/src/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o7x6uewa/src/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-e8u3fix1/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

【问题讨论】:

    标签: python-3.x tensorflow google-colaboratory


    【解决方案1】:

    试试pip install src==0.0.6

    它对我有用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-30
      • 1970-01-01
      • 2019-01-12
      • 2020-07-01
      • 2021-09-20
      • 1970-01-01
      相关资源
      最近更新 更多