我正试图在我本地的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.有人知道怎么修吗?
发布于 2019-10-09 20:41:07
os.name方法是特定*nix命令的Python端口,在Windows中是无法获取的。您应该下载MS Windows版本,或者更有可能的是,您无法在Windows中运行该软件。
在虚拟机中尝试。
发布于 2019-10-09 21:30:38
os.name为only available on Linux machines.
如果不更改软件的代码,您正在查看的软件或至少一个依赖软件将无法在Windows上运行。
我做了一些谷歌搜索,发现你可能正在克隆一个git存储库来获得这一点。尝试用platform.system()代替os.name。
https://stackoverflow.com/questions/58304234
复制相似问题