ImportError:DLL加载失败:找不到指定的模块,路径问题

时间:2019-06-01 03:37:38

标签: python-3.x path

我的python代码运行正常,直到它重命名了我的用户帐户目录,因为我包含一个空格,此后它不起作用,当我运行它时,出现以下错误:

C:\Users\cheikh_Moctar\RimGeo_Blog>Blog.py
Traceback (most recent call last):
  File "C:\Users\cheikh_Moctar\RimGeo_Blog\Blog.py", line 2, in <module>
    from flask import Flask, render_template, url_for, flash, redirect
  File "C:\Users\cheikh_Moctar\Anaconda3\lib\site-packages\flask\__init__.py", line 21, in <module>
    from .app import Flask, Request, Response
  File "C:\Users\cheikh_Moctar\Anaconda3\lib\site-packages\flask\app.py", line 25, in <module>
    from . import cli, json
  File "C:\Users\cheikh_Moctar\Anaconda3\lib\site-packages\flask\cli.py", line 18, in <module>
    import ssl
  File "C:\Users\cheikh_Moctar\Anaconda3\lib\ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: DLL load failed: The specified module could not be found.

然后我尝试卸载flask软件包,并出现以下错误:

  C:\Users\cheikh_Moctar\RimGeo_Blog>pip uninstall flask
Fatal error in launcher: Unable to create process using '"c:\users\cheikh sidi elmoctar\python\python.exe"  "C:\Users\cheikh_Moctar\python\Scripts\pip.exe" uninstall flask'

任何人都可以帮助修复该路径,并删除旧路径(“ c:\ users \ cheikh sidi elmoctar \ python \ python.exe”)。??

0 个答案:

没有答案