PyPDF2未在Visual Studio代码中加载

问题描述 投票:0回答:1

我正在通过Anaconda使用Visual Studio代码。我通过以下命令在Anaconda的命令中安装了PyPDF2:

pip install PyPDF2

但是,我无法从VSC导入它。我收到错误消息:

ModuleNotFoundError: No module named 'PyPDF2'

即使我可以将其导入Jupyter笔记本中。

我正在通过Anaconda使用Visual Studio代码。我通过以下命令在Anaconda的命令中安装了PyPDF2:pip install PyPDF2但是,我无法从VSC导入它。我收到错误消息:ModuleNotFoundError:否...

python anaconda pypdf2
1个回答
0
投票

我想出了问题。这是因为Python 3.8.2。使用以前的版本将使一切正常。

© www.soinside.com 2019 - 2024. All rights reserved.