python 3和macos由于EnvironmentError无法安装软件包:[Errno 30]只读文件系统

时间:2020-01-27 13:42:28

标签: python macos pip

我在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'

1 个答案:

答案 0 :(得分:0)

这通过在终端上运行解决了我在Mac OS上的问题:

   xcode-select --install

然后重新启动。用最新的mac更新以某种方式弄乱了事情。

点子的问题是全球性的