【问题标题】:Django oscar docker: AttributeError: module 'os' has no attribute 'uname'Django oscar docker:AttributeError:模块'os'没有属性'uname'
【发布时间】:2020-07-22 20:40:05
【问题描述】:

我使用了 git clone https://github.com/django-oscar/django-oscar,然后我使用了

pipenv install

我得到了

AttributeError: module 'os' has no attribute 'uname' this error as well as this 
pipenv.patched.notpip._internal.exceptions.InstallationError:
Command errored out with exit status 1:
python setup.py egg_info Check the logs for full command output.

我使用的是 Windows 10。

【问题讨论】:

    标签: django docker pipenv django-oscar pipenv-install


    【解决方案1】:

    我想这与 docker 没有太大关系,但更多的是与主机操作系统(在本例中为 win 10)。

    This question 描述得更详细,但归结为 uname 在 Windows 上不可用。由于 docker 容器使用运行它们的主机操作系统的内核,因此在您的情况下,这将出错。

    如果你在Windows 10的python Idle环境下运行这些命令也会出现同样的错误。

    【讨论】:

      猜你喜欢
      • 2020-07-29
      • 1970-01-01
      • 2020-02-16
      • 2015-12-17
      • 1970-01-01
      • 1970-01-01
      • 2022-07-14
      • 2018-04-05
      • 1970-01-01
      相关资源
      最近更新 更多