Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Django属性模块操作系统_Python_Django_Django Rest Framework - Fatal编程技术网

Python Django属性模块操作系统

Python Django属性模块操作系统,python,django,django-rest-framework,Python,Django,Django Rest Framework,我试图在本地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\\

我试图在本地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.
错误:命令出错,退出状态为1:
命令:“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”__文件“''C:\\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\pip-install-mb9x0ep8\\uWSGI\\setup.py''”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,uuuu文件,uuuuu,“'exec'”))'egg\u信息——蛋基pip egg信息
cwd:C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-install-mb9x0ep8\uWSGI\
完整输出(7行):
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-install-mb9x0ep8\uWSGI\setup.py”,第3行,在
将uwsgiconfig导入为uc
文件“C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-install-mb9x0ep8\uWSGI\uwsgiconfig.py”,第8行,在
uwsgi_os=os.uname()[0]
AttributeError:模块“os”没有属性“uname”
----------------------------------------
错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出。

有人知道如何修复它吗?

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

在虚拟机中尝试。

os。名称是

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


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

您正在使用的
Python
的哪个版本,以及哪个
命令出现了该异常?