嘿,亲爱的,我正试图在我的anaconda环境中启动spyder,但是我面临这个错误。
Application Spyder启动可能产生错误Mac M1 Chip
Traceback (most recent call last):
File "/Users/nawrozmohammadi/miniforge3/envs/tf24/bin/spyder", line 7, in
from spyder.app.start import main
File "/Users/nawrozmohammadi/miniforge3/envs/tf24/lib/python3.8/site-packages/spyder/app/start.py", line 35, in
from spyder.utils.external import lockfile
File "/Users/nawrozmohammadi/miniforge3/envs/tf24/lib/python3.8/site-packages/spyder/utils/external/lockfile.py", line 31, in
from spyder.utils.programs import is_spyder_process
File "/Users/nawrozmohammadi/miniforge3/envs/tf24/lib/python3.8/site-packages/spyder/utils/programs.py", line 30, in
import psutil
File "/Users/nawrozmohammadi/miniforge3/envs/tf24/lib/python3.8/site-packages/psutil/__init__.py", line 159, in
from . import _psosx as _psplatform
File "/Users/nawrozmohammadi/miniforge3/envs/tf24/lib/python3.8/site-packages/psutil/_psosx.py", line 15, in
from . import _psutil_osx as cext
ImportError: dlopen(/Users/nawrozmohammadi/miniforge3/envs/tf24/lib/python3.8/site-packages/psutil/_psutil_osx.cpython-38-darwin.so, 2): no suitable image found. Did find:
/Users/nawrozmohammadi/miniforge3/envs/tf24/lib/python3.8/site-packages/psutil/_psutil_osx.cpython-38-darwin.so: mach-o, but wrong architecture
/Users/nawrozmohammadi/miniforge3/envs/tf24/lib/python3.8/site-packages/psutil/_psutil_osx.cpython-38-darwin.so: mach-o, but wrong architecture
在我启动spyder之前,我通过这两种方式安装了Tensorflow第一和第二和Tensorflow工作成功**
>>>import tensorflow as tf
>>>tf.__version__
'2.4.0-rc0'
我已经尝试安装pyqt,并做了
conda update -all
。但是什么都不行
系统信息
conda version: 4.9.2
python版本:3.8.6
平台:maOS BigSur 64
Anaconda运行在x86 (intel)上,因此即使我在使用m1 macbook air时也遇到了许多问题。但是miniconda是专门为arm64芯片定制的。
因此尝试安装miniconda并使用jupyternotebooks。
按照下面的指南成功安装tensorflow和Pycharm:
安装TensorFlow &M1 macbook上的Pytorch