Python:ImportError:DLL加载失败:找不到指定的模块

Python:ImportError:DLL加载失败:找不到指定的模块,python,Python,我最近重新安装了Windows 10,并且安装了Python 2.7.13(32位) 我还通过pip安装了Dotnet1.2.1(32位) 当我试图导入dotnet时,我得到了以下结果 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python27\lib\site-packages\dotnet\__init__.py", line 21, in &

我最近重新安装了Windows 10,并且安装了Python 2.7.13(32位)

我还通过pip安装了Dotnet1.2.1(32位)

当我试图
导入dotnet
时,我得到了以下结果

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\dotnet\__init__.py", line 21, in <module>
    import dotnet.moduleloader
  File "C:\Python27\lib\site-packages\dotnet\moduleloader.py", line 24, in <module>
    from dotnet import PyDotnet as _dotnet
ImportError: DLL load failed: The specified module could not be found.
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Python27\lib\site packages\dotnet\\uuuu init\uuuuu.py”,第21行,在
导入dotnet.moduleloader
文件“C:\Python27\lib\site packages\dotnet\moduleloader.py”,第24行,在
从dotnet导入PyDotnet作为_dotnet
ImportError:DLL加载失败:找不到指定的模块。

对此有什么建议吗?

我的问题的解决方案是Windows缺少一些DLL文件。当我安装了微软Visual C++ 2015可重新分配(x86)时,错误已经消失。

< p>我的问题的解决方案是Windows缺少一些DLL文件。当我安装微软Visual C++ 2015可重分发(x86)时,错误已经消失。

只需在外壳中键入导入dotnet并点击回车。确保没有出现错误。如果确实出现错误,则需要重新安装。在使用pip下载dotnet之前,您可能需要先更新它。只需在shell中键入import dotnet并按enter键。确保没有出现错误。如果确实出现错误,则需要重新安装。在使用pip下载dotnet之前,您可能需要先更新它。