【问题标题】:"pipenv install" causes "OSError: Command .../python2.7 - setuptools pip wheel failed with error code 1"“pipenv install”导致“OSError: Command .../python2.7 - setuptools pip wheel failed with error code 1”
【发布时间】:2023-04-03 04:58:01
【问题描述】:

跑步:

mkdir pythontest
cd pythontest
pipenv install requests

原因:

 "OSError: Command .../python2.7 - setuptools pip wheel failed with error code 1"

一些附加信息:

  • Mac 操作系统
  • 我好像没有康达

【问题讨论】:

    标签: python pipenv


    【解决方案1】:

    Mac 中默认安装的 python 版本是 2.7,不推荐用于构建较新的应用程序。

    请从https://www.python.org/安装最新的python版本(3.7.0)

    然后尝试“pip3.7 安装请求”

    【讨论】:

    • 我正在做一个使用 2.7 的项目。我想创建一个测试项目,我可以在其中玩弄该项目的东西,所以我想使用 2.7,而不是 3.7。
    猜你喜欢
    • 2018-08-21
    • 2020-10-04
    • 1970-01-01
    • 2019-07-04
    • 2016-10-04
    • 2015-09-03
    • 2012-05-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多