【问题标题】:python 3 and macos Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system由于环境错误,python 3 和 macos 无法安装软件包:[Errno 30] 只读文件系统
【发布时间】:2023-04-10 06:16:01
【问题描述】:

我在 mac os 上尝试安装 cython。我对如何解决零线索。

pip3 install cython
Collecting cython
  Using cached https://files.pythonhosted.org/packages/9b/e6/6e30303d7bc17289411d82276b7338a1781964171c94f5ebe689cbecad4c/Cython-0.29.14-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Installing collected packages: cython
Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: '/lib'

【问题讨论】:

  • 你看到错误信息了吗???
  • 尝试以管理员身份运行命令或将 4755 chmod 更改为 pip3
  • 嘿@bruno-desthuilliers 变得真实。你有吗?
  • 使用 sudo 会出现同样的错误

标签: python macos pip


【解决方案1】:

这通过在终端中运行解决了我在 mac os 上的问题:

   xcode-select --install

然后重新启动。不知何故,随着最新的 mac 更新,事情变得一团糟。

pip 的问题是全球性的

【讨论】:

    猜你喜欢
    • 2019-05-21
    • 2021-02-09
    • 1970-01-01
    • 2022-11-23
    • 2020-07-01
    • 2019-03-27
    • 2019-01-08
    • 2021-02-09
    • 2020-11-15
    相关资源
    最近更新 更多