我已经使用命令pip install pydf成功安装了pyPdf模块但是当我使用import命令使用模块时,我收到以下错误:
enC:\Anaconda3\lib\site-packages\pyPdf\__init__.py in <module>()
1 from pdf import PdfFileReader, PdfFileWriter
2 __all__ = ["pdf"]
ImportError: No module named 'pdf'
Run Code Online (Sandbox Code Playgroud)
我该怎么办?我也安装了pdf模块,但错误仍然没有消失.
我已经使用pip命令从pypy安装了wkhtmltopdf包装器。并且模块安装正确,但是当我尝试导入模块时,出现如下错误:
ImportError: No module named 'main'
Run Code Online (Sandbox Code Playgroud)
请提供解决方案。我正在使用Python 3.5.2
我正在解析页面http://www.geeksforgeeks.org/amazon-interview-experience-set-324-sde2/,并使用beautifulsoup以html的形式从此页面提取采访文本。然后,我想将html转换为pdf文件。我正在尝试使用wkhtmltopdf。