pandas 将camelot导入python和时没有名为cv2的模块

vc6uscn9  于 2022-12-21  发布在  Python
关注(0)|答案(1)|浏览(229)

尝试在MacBook Pro OS 10.13.6上导入camelot成功安装python和miniconda并导入Pandas后。其他一切似乎都安装并工作,但导入camelot时收到错误:

import camelot
Traceback (most recent call last):
File "", line 1, in
File "/Users/apple/miniconda3/lib/python3.7/site-packages/camelot/init.py", line 6, in
from .io import read_pdf
File "/Users/apple/miniconda3/lib/python3.7/site-packages/camelot/io.py", line 5, in
from .handlers import PDFHandler
File "/Users/apple/miniconda3/lib/python3.7/site-packages/camelot/handlers.py", line 9, in
from .parsers import Stream, Lattice
File "/Users/apple/miniconda3/lib/python3.7/site-packages/camelot/parsers/init.py", line 4, in
from .lattice import Lattice
File "/Users/apple/miniconda3/lib/python3.7/site-packages/camelot/parsers/lattice.py", line 26, in
from ..image_processing import (
File "/Users/apple/miniconda3/lib/python3.7/site-packages/camelot/image_processing.py", line 3, in
import cv2
ModuleNotFoundError: No module named 'cv2'
import platform; print(platform.platform())
Darwin-17.7.0-x86_64-i386-64bit
import sys; print('Python', sys.version)
Python 3.7.6 (default, Jan 8 2020, 13:42:34)
[Clang 4.0.1 (tags/RELEASE_401/final)]
import numpy; print('NumPy', numpy.version)
NumPy 1.18.4
import cv2; print('OpenCV', cv2.version)
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'cv2'
import camelot; print('Camelot', camelot.version)

我看到的一个参数,我想知道的是达尔文参数,因为我看到在Anaconda.sh安装程序,它检查配置,不会安装,如果它等于'达尔文'配置,但miniconda没有检查。miniconda有相同的限制吗?有没有一个变通办法,我需要这样它甚至可以与木星笔记本电脑?目前,当我将camelot导入到Jupiter notebook时,Jupiter notebook上发生了完全相同的cv2错误。我认为这些python工具存在于Jupiter notebook平台上,所以我不需要它们都在本地。

gmxoilav

gmxoilav1#

pip install opencv-python下载opencv模块后,我不再有错误reference

相关问题