ImportError:没有名为pyopengv的模块

时间:2019-11-14 12:01:27

标签: python pip

enter image description here

嗨,我在使用openSFM时遇到问题。我第一次....

我尝试了命令

bin/opensfm_run_all data/berlin

并出现如下错误:

Running using Python command: python
Traceback (most recent call last):
  File "/home/yjw/OpenSfM/bin/opensfm", line 10, in <module>
    from opensfm import commands
  File "/home/yjw/OpenSfM/opensfm/commands/__init__.py", line 4, in <module>
    from . import match_features
  File "/home/yjw/OpenSfM/opensfm/commands/match_features.py", line 9, in <module>
    from opensfm import matching
  File "/home/yjw/OpenSfM/opensfm/matching.py", line 3, in <module>
    import pyopengv
ImportError: No module named pyopengv

似乎没有安装pyopengv,所以我尝试了

pip install opengv and pip3 install opengv 

但是又出现了另一个问题...

Collecting opengv
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/opengv/

有人可以给我解决方法吗?谢谢是提前!!

enter image description here

2 个答案:

答案 0 :(得分:1)

问题是PyPi储存库中没有opengv库,您必须按照以下说明手动安装它:http://laurentkneip.github.io/opengv/page_installation.html

sudo apt-get install build-essential cmake libeigen3-dev
git clone https://github.com/laurentkneip/opengv
cd opengv
mkdir build && cd build && cmake .. && make

答案 1 :(得分:-1)

这是环境错误。 python V3的opengv可能已安装到python V2文件夹中。请尝试使用opengv的cmake选项

ng test --project=my-project-name --test-file=my-test-file.component.spec.ts