Django 属性模块

2024-09-28 21:02:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图在本地windows计算机上安装Vataxia社交网络平台,但收到如下消息。你知道吗

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.

有人知道怎么修吗?你知道吗


Tags: installpippyinfoeggsetuppublicusers
2条回答

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

在虚拟机中尝试。你知道吗

os.nameonly available on Linux machines.

如果不更改软件的代码,则无法在Windows上运行您正在查看的软件或至少一个软件(如果它是依赖项)。你知道吗

我在google上搜索了一下,发现你可能正在克隆一个git存储库来获取这个。试着用platform.system()代替os.name。你知道吗

相关问题 更多 >