找不到在macos lumi命令上安装luminoth

2024-06-08 22:30:21 发布

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

无法使用python包luminoth。 在mac终端命令行上通过pip3安装包后,我收到以下错误: 找不到lumi命令

注意: 我不熟悉使用python和命令行

我尝试在以下目录中更改目录并运行命令,但没有成功: /库/框架/Python.framework/Versions/3.7/lib/python3.7/site-packages文件包

我也一直遵循luminoth教程的指导,但没有成功。 https://luminoth.readthedocs.io/en/latest/tutorial/01-first-steps.html#using-the-shell-detecting-objects-in-an-image-or-video

请参阅我的安装包和测试lumi命令的代码:

macs-MacBook-Air:~ mac$ pip3 install luminoth
Collecting luminoth
  Downloading https://files.pythonhosted.org/packages/12/ad/81860f57f2d7b5fa4c6182d28516b7f9b3a49518008df47a89384e8ff60d/luminoth-0.2.3-py2.py3-none-any.whl (220kB)
    100% |████████████████████████████████| 225kB 3.1MB/s 
Collecting lxml (from luminoth)
  Downloading https://files.pythonhosted.org/packages/45/6c/436a534dca42f7982ba793983353035d117ab70541266704974efa323ade/lxml-4.3.3-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (8.7MB)
    100% |████████████████████████████████| 8.7MB 2.8MB/s 
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from luminoth) (1.16.2)
Collecting dm-sonnet<=1.23,>=1.12 (from luminoth)
  Downloading https://files.pythonhosted.org/packages/83/c7/e32a7d83724f26e921dcdd7ddd8f30e6e92cb4e68c740960307616b6ada8/dm_sonnet-1.23-py3-none-any.whl (616kB)
    100% |████████████████████████████████| 624kB 8.7MB/s 
Collecting requests (from luminoth)
  Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
    100% |████████████████████████████████| 61kB 10.5MB/s 
Collecting PyYAML<4,>=3.12 (from luminoth)
  Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
    100% |████████████████████████████████| 276kB 4.4MB/s 
Collecting Flask>=0.12 (from luminoth)
  Downloading https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl (91kB)
    100% |████████████████████████████████| 92kB 12.7MB/s 
Collecting scikit-video (from luminoth)
  Downloading https://files.pythonhosted.org/packages/b1/a6/c69cad508139a342810ae46e946ebb3256aa6e42f690d901bb68f50582e3/scikit_video-1.1.11-py2.py3-none-any.whl (2.3MB)
    100% |████████████████████████████████| 2.3MB 5.5MB/s 
Collecting click<7,>=6.7 (from luminoth)
  Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl (71kB)
    100% |████████████████████████████████| 71kB 11.7MB/s 
Collecting easydict<=1.8,>=1.7 (from luminoth)
  Downloading https://files.pythonhosted.org/packages/e7/24/1fbad1ef849573ea97983e29761160462d89b95dc71853f1080c281ac964/easydict-1.8.tar.gz
Requirement already satisfied: six>=1.11 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from luminoth) (1.12.0)
Collecting Pillow (from luminoth)
  Downloading https://files.pythonhosted.org/packages/22/55/2ce41fa510f131c776112a1d24ee90cddffc96f1bf0311efb14fdd8ae877/Pillow-6.0.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.7MB)
    100% |████████████████████████████████| 3.7MB 5.7MB/s 
Requirement already satisfied: absl-py in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from dm-sonnet<=1.23,>=1.12->luminoth) (0.7.1)
Collecting idna<2.9,>=2.5 (from requests->luminoth)
  Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 10.1MB/s 
Collecting certifi>=2017.4.17 (from requests->luminoth)
  Downloading https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl (158kB)
    100% |████████████████████████████████| 163kB 13.8MB/s 
Collecting chardet<3.1.0,>=3.0.2 (from requests->luminoth)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 15.4MB/s 
Collecting urllib3<1.25,>=1.21.1 (from requests->luminoth)
  Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
    100% |████████████████████████████████| 122kB 14.5MB/s 
Requirement already satisfied: Werkzeug>=0.14 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from Flask>=0.12->luminoth) (0.15.1)
Collecting itsdangerous>=0.24 (from Flask>=0.12->luminoth)
  Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting Jinja2>=2.10 (from Flask>=0.12->luminoth)
  Downloading https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl (126kB)
    100% |████████████████████████████████| 133kB 15.0MB/s 
Collecting scipy (from scikit-video->luminoth)
  Downloading https://files.pythonhosted.org/packages/dd/6c/ccf7403d14f0ab0f20ce611696921f204f4ffce99a4fd383c892a6a7e9eb/scipy-1.2.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (27.3MB)
    100% |████████████████████████████████| 27.3MB 1.0MB/s 
Collecting MarkupSafe>=0.23 (from Jinja2>=2.10->Flask>=0.12->luminoth)
  Downloading https://files.pythonhosted.org/packages/ce/c6/f000f1af136ef74e4a95e33785921c73595c5390403f102e9b231b065b7a/MarkupSafe-1.1.1-cp37-cp37m-macosx_10_6_intel.whl
Building wheels for collected packages: PyYAML, easydict
  Building wheel for PyYAML (setup.py) ... done
  Stored in directory: /Users/mac/Library/Caches/pip/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f
  Building wheel for easydict (setup.py) ... done
  Stored in directory: /Users/mac/Library/Caches/pip/wheels/3f/f0/7c/1ec164f1dc11a6e0ef58463f5e25e83d9c6f661e2e8e70bcef
Successfully built PyYAML easydict
Installing collected packages: lxml, dm-sonnet, idna, certifi, chardet, urllib3, requests, PyYAML, click, itsdangerous, MarkupSafe, Jinja2, Flask, scipy, Pillow, scikit-video, easydict, luminoth
Successfully installed Flask-1.0.2 Jinja2-2.10 MarkupSafe-1.1.1 Pillow-6.0.0 PyYAML-3.13 certifi-2019.3.9 chardet-3.0.4 click-6.7 dm-sonnet-1.23 easydict-1.8 idna-2.8 itsdangerous-1.1.0 luminoth-0.2.3 lxml-4.3.3 requests-2.21.0 scikit-video-1.1.11 scipy-1.2.1 urllib3-1.24.1
macs-MacBook-Air:~ mac$ lumi
-bash: lumi: command not found

链接到Luminoth GitHub页面:https://github.com/tryolabs/luminoth


Tags: fromhttpsorgnonepackagespy3anymb