0

I am reading a book("Learn Python 3 the Hard Way") that teaches me python 3.6 but I am unable to get python 3.6 running on the terminal. The book specifically says "In your Terminal program, run python3.6. You run things in Terminal by just typing the name and hitting RETURN." I already installed python 3.6 and Atom but typing in python3.6 is giving me an error.

dyld: 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
Abort trap: 6

I have tried just typing in "python" but it defaults to 2.7. Please help because I am super confused and I have no idea what I'm doing. Thank you.

azro
  • 53,056
  • 7
  • 34
  • 70
non ya
  • 1
  • You can try installing the package from here: https://www.python.org/search/?q=python+3.6&submit= –  Jun 12 '21 at 17:21
  • 1
    Try reinstalling Python. – enzo Jun 12 '21 at 17:21
  • Try `python3` instead. – PM 77-1 Jun 12 '21 at 17:21
  • Which operating system and version? It may already have a python 3 and your install may have messed that up. For your tutorial, version 3.6 and up should all be okay (new versions have new features but usually don't delete old features). – tdelaney Jun 12 '21 at 18:09

2 Answers2

1

Looks like a known bug; Python versions older than 3.7 do not work on Big Sur.

Ture Pålsson
  • 6,088
  • 2
  • 12
  • 15
1

You should just use the homebrew to install the python or the other packages, it's simpler and doesn't really hampers the underlying versions of python.

If you want to remove the previous versions or unwanted versions from you system https://stackoverflow.com/a/3819829/13176117 this is the best answer that i follow every time.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Chirag Bhatia
  • 11
  • 1
  • 2