在 M1 上安装 pytorch 后 conda env 损坏 - Intel MKL 致命错误

Int*_*ure 5 intel-mkl conda pytorch apple-m1

pytorch按照网上的一些说明(通过conda命令)安装在我的 M1 mac 书上。然后我的整个环境就被破坏了。每当我尝试导入一些库(pandas、numpy,等等)时,我都会得到:

Intel MKL FATAL ERROR: This system does not meet the minimum requirements for use of the Intel(R) Math Kernel Library.
The processor must support the Intel(R) Supplemental Streaming SIMD Extensions 3 (Intel(R) SSSE3) instructions.
The processor must support the Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) instructions.
The processor must support the Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.
Run Code Online (Sandbox Code Playgroud)
  1. 我该如何修复它?
  2. 如何才能成功安装pytorch?

小智 4

这是几周前对我有用的方法:

  1. 创建一个新的 conda 环境并激活它。
  2. conda install ipykernel jupyter numpy pandas matplotlib nomkl(关键部分是包含nomkl和不包含 PyTorch)。
  3. pip install torch torchvision

我无法使用 conda 执行步骤 3(可能是相关问题)。

这感觉不像是一个强大的解决方案(混合 conda 和 pip),但这个环境在过去几周对我来说很有效。

  • 这个有效 - 不知道为什么,但它确实有效 - 网上肯定有太多解决方案可以在 M1 mac 上安装 python... (2认同)