我已经通过一些解决方案看到了这个问题,但没有一个解决我的问题。office365(v 2.2.0)据我所知,我已经使用以下命令pip 安装了最新版本:
pip install office365-rest-client
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用以下代码行进行导入:
from office365.runtime.auth.authentication_context import AuthenticationContext
from office365.sharepoint.client_context import ClientContext
from office365.sharepoint.files.file import File
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
ModuleNotFoundError: No module named 'office365'
Run Code Online (Sandbox Code Playgroud)
为了测试一下,我卸载并重新安装了 pandas,然后成功将 pandas 导入到我的项目中。