【问题标题】:Cannot install geonode in window无法在窗口中安装 geonode
【发布时间】:2021-03-23 06:44:02
【问题描述】:

当我运行命令 pip install -e geonode 时出现以下错误。我正在安装geonode。我正在使用窗口 10。

ERROR: Command errored out with exit status 1:
     command: 'C:\Users\eidulameen.sh\Documents\geonode_env\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\eidulameen.sh\\AppData\\Local\\Temp\\pip-install-wk7ukb8e\\uwsgi_17dc79202ede4643a13c8c5233dc91cc\\setup.py'"'"'; __file__='"'"'C:\\Users\\eidulameen.sh\\AppData\\Local\\Temp\\pip-install-wk7ukb8e\\uwsgi_17dc79202ede4643a13c8c5233dc91cc\\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 'C:\Users\eidulameen.sh\AppData\Local\Temp\pip-pip-egg-info-71v4l6zx'
         cwd: C:\Users\eidulameen.sh\AppData\Local\Temp\pip-install-wk7ukb8e\uwsgi_17dc79202ede4643a13c8c5233dc91cc\
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\eidulameen.sh\AppData\Local\Temp\pip-install-wk7ukb8e\uwsgi_17dc79202ede4643a13c8c5233dc91cc\setup.py", line 3, in <module>
        import uwsgiconfig as uc
      File "C:\Users\eidulameen.sh\AppData\Local\Temp\pip-install-wk7ukb8e\uwsgi_17dc79202ede4643a13c8c5233dc91cc\uwsgiconfig.py", line 8, in <module>
        uwsgi_os = os.uname()[0]
    AttributeError: module 'os' has no attribute 'uname'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c7/75/45234f7b441c59b1eefd31ba3d1041a7e3c89602af24488e2a22e11e7259/uWSGI-2.0.19.1.tar.gz#sha256=faa85e053c0b1be4d5585b0858d3a511d2cd10201802e8676060fd0a109e5869 (from https://pypi.org/simple/uwsgi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement uWSGI==2.0.19.1 (from geonode)
ERROR: No matching distribution found for uWSGI==2.0.19.1

关于如何解决问题的任何想法。提前谢谢你。

【问题讨论】:

    标签: python django gis


    【解决方案1】:

    问题与 requirements.txtsetup.cfg 中的这些生产和测试包有关,因为它们应该在 Linux 环境而不是 Windows 中运行。

    如果您尝试评论他们,问题将不会出现。

    另外,您可以试试Cartoview Windows Installer。 Cartoview 是 GeoNode 的扩展,可在地理空间应用程序中可视化图层和地图。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-23
      • 2021-07-06
      • 2019-12-08
      • 1970-01-01
      • 1970-01-01
      • 2022-01-05
      • 1970-01-01
      • 2019-02-14
      相关资源
      最近更新 更多