小编Ani*_*rgi的帖子

Poppler的路径为pdf2image

我正在尝试使用pdf2image,看来我需要一个叫做propeller

(sum_env) C:\Users\antoi\Documents\Programming\projects\summarizer>python ocr.py -i fr13_idf.pdf
Traceback (most recent call last):
  File "c:\Users\antoi\Documents\Programming\projects\summarizer\sum_env\lib\site-packages\pdf2image\pdf2image.py", line 165, in __page_count
    proc = Popen(["pdfinfo", pdf_path], stdout=PIPE, stderr=PIPE)
  File "C:\Python37\lib\subprocess.py", line 769, in __init__
    restore_signals, start_new_session)
  File "C:\Python37\lib\subprocess.py", line 1172, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "ocr.py", line 53, in <module>
    pdfspliterimager(image_path)
  File "ocr.py", line 32, in pdfspliterimager
    pages = convert_from_path("document-page%s.pdf" …
Run Code Online (Sandbox Code Playgroud)

path python-3.x

6
推荐指数
6
解决办法
1万
查看次数

将 jupyter notebook 更新到 python 3.7

我已经安装了 3.73 版的 python,但对于 jupyter 笔记本,我安装了3.6.8. 如何在 jupyter notebook 上将 python 升级到 3.7+ 版本?

我试过:

 conda update jupyter

 conda upgrade notebook
Run Code Online (Sandbox Code Playgroud)

当我在 virtual env python -VI 中输入终端时得到 3.73 但是当我在 jupyter 中检查它时:

 from platform import python_version
 print(python_version())
Run Code Online (Sandbox Code Playgroud)

我明白了3.6.8

python jupyter-notebook

5
推荐指数
1
解决办法
8111
查看次数

标签 统计

jupyter-notebook ×1

path ×1

python ×1

python-3.x ×1