姜戈属性模块操作系统



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

ERROR: Command errored out with exit status 1:
command: 'c:usersradedesktopvataxiabackenvscriptspython.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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:UsersPublicDocumentsWondershareCreatorTemppip-install-mb9x0ep8uWSGI
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:UsersPublicDocumentsWondershareCreatorTemppip-install-mb9x0ep8uWSGIsetup.py", line 3, in <module>
import uwsgiconfig as uc
File "C:UsersPublicDocumentsWondershareCreatorTemppip-install-mb9x0ep8uWSGIuwsgiconfig.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.

有人知道如何解决它吗?

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

在虚拟机中尝试。

os.name仅在 Linux 机器上可用。

您正在查看的软件(或者至少一个(如果是依赖项(无法在不更改软件代码的情况下在 Windows 上运行。

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

最新更新