首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Django属性模块OS

Django属性模块OS
EN

Stack Overflow用户
提问于 2019-10-09 20:33:50
回答 2查看 332关注 0票数 0

我正试图在我本地的windows机器上安装Vataxia社交网络平台,但我收到了类似这样的消息。

代码语言:javascript
复制
ERROR: Command errored out with exit status 1:
     command: 'c:\users\rade\desktop\vataxia\back\env\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\pip-install-mb9x0ep8\\uWSGI\\setup.py'"'"'; __file__='"'"'C:\\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\pip-install-mb9x0ep8\\uWSGI\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-install-mb9x0ep8\uWSGI\
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-install-mb9x0ep8\uWSGI\setup.py", line 3, in <module>
        import uwsgiconfig as uc
      File "C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-install-mb9x0ep8\uWSGI\uwsgiconfig.py", line 8, in <module>
        uwsgi_os = os.uname()[0]
    AttributeError: module 'os' has no attribute 'uname'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

有人知道怎么修吗?

EN

回答 2

Stack Overflow用户

发布于 2019-10-09 20:41:07

os.name方法是特定*nix命令的Python端口,在Windows中是无法获取的。您应该下载MS Windows版本,或者更有可能的是,您无法在Windows中运行该软件。

在虚拟机中尝试。

票数 0
EN

Stack Overflow用户

发布于 2019-10-09 21:30:38

os.nameonly available on Linux machines.

如果不更改软件的代码,您正在查看的软件或至少一个依赖软件将无法在Windows上运行。

我做了一些谷歌搜索,发现你可能正在克隆一个git存储库来获得这一点。尝试用platform.system()代替os.name

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58304234

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档