我正在通过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 3.8.2。使用以前的版本将使一切正常。