首页 > 解决方案 > 入门:Mac 终端中的 Python 不断崩溃

问题描述

尝试开始学习 Python 并尝试使用 Google 数小时后,我需要帮助。只是试图验证 python3 的版本,它一直在崩溃。也无法安装 Pip。我重新安装了 Python3.9,无法正常工作。不知道我可能做错了什么。

Process:               Python [15768]
Path:                  /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.6.0 (3.6.0)
Code Type:             X86-64 (Native)
Parent Process:        zsh [15690]
Responsible:           Terminal [9962]
User ID:               501

Date/Time:             2021-04-26 20:02:18.731 -0400
OS Version:            macOS 11.1 (20C69)
Report Version:        12
Bridge OS Version:     5.1 (18P3030)
Anonymous UUID:        126807BB-3AE8-CB57-F094-B5FA4E18A58E

Sleep/Wake UUID:       324052CE-E0E2-493B-B762-C56A1D51469F

Time Awake Since Boot: 44000 seconds
Time Since Wake:       4100 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  dyld: No shared cache present
Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
  Reason: image not found

Binary Images:
       0x100000000 -        0x100000fff +org.python.python (3.6.0 - 3.6.0) <2D4A19AA-E1F7-61EE-36A7-8CEBCEBC97DA> /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
    0x7fff5c36b000 -     0x7fff5c406fff  dyld (832.7.1) <DEA51514-B4E8-3368-979B-89D0F8397ABC> /usr/lib/dyld

Model: MacBookPro16,2, BootROM 1554.60.15.0.0 (iBridge: 18.16.13030.0.0,0), 4 processors, Quad-Core Intel Core i5, 2 GHz, 16 GB, SMC 
Graphics: kHW_IntelIrisPlusGraphicsItem, Intel Iris Plus Graphics, spdisplays_builtin
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, LPDDR4X, 3733 MHz, Samsung, -
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, LPDDR4X, 3733 MHz, Samsung, -
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x7BF), wl0: Sep 11 2020 17:01:15 version 9.30.440.2.32.5.61 FWID 01-1d69e4b4
Bluetooth: Version 8.0.2f9, 3 services, 27 devices, 1 incoming serial ports

标签: python-3.xmacos

解决方案


推荐阅读