【问题标题】:#[Errno 2] No such file or directory#[Errno 2] 没有这样的文件或目录
【发布时间】:2019-10-04 05:46:42
【问题描述】:

所以,这就是我在做什么 从以下链接: https://django-microsoft-auth.readthedocs.io/en/latest/installation.html#from-sources

我正在尝试按照博客中提到的所有步骤安装django_microsoft_auth

Step-1 i.e. "pip install django_microsoft_auth" # is working
Step-2 i.e. "git clone git://github.com/AngellusMortis/django_microsoft_auth" # is also working
Step-3 i.e. "python setup.py install" # is giving me the below error.

C:\Users\vtinkhed\AppData\Local\Programs\Python\Python37\python.exe: 无法打开文件“setup.py”:[Errno 2] 没有这样的文件或目录

我不知道如何提供帮助。有人可以帮我吗? 提前致谢

【问题讨论】:

    标签: python django azure authentication


    【解决方案1】:

    您需要从 setup.py 所在的文件夹启动它。

    使用cd 进入该文件夹,然后运行python setup.py install

    【讨论】:

    • 我按照您的指导进行了尝试,但它仍在 C:\Users\vtinkhed\AppData\Local\Programs\Python\Python37 中,并且仍然给我同样的错误。
    • 在 Windows 资源管理器中使用 setup.py 打开文件夹。按住 Shift 键时,右键单击空白区域并选择“在此处打开 PowerShell 窗口”。然后输入python setup.py install
    【解决方案2】:

    我有同样的问题。我的问题是我的脚本在“hello.py”中有一个空格,而不是“hello.py”。改名后效果很好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-20
      • 2015-11-19
      • 2013-03-21
      • 2015-04-09
      • 2019-05-26
      • 2018-12-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多