Errors installing python 3.10.11 in terminal

okay so im watching a tutorial on YouTube and I had things working perfect when I type Python3 -v in terminalal and it would return version just fine. so this guy on ffreecodecamp with tutorial Python Django Web Framework - Full Course For Beginners

He states to go to their website at Jounce - Free AI Copywriting & Art for Marketers and install everything to the way he is set up, so I do so.

that leads me to installing python 3.10.11 (I chose the universal installer) I have intel based Mac mid 2014 running unverified Sonoma

now I run installer and when done I pull up terminal and type python -v and in runs through code and finishes with >>> so I type python - v and I get errors again and I type all kinds but I stuck with following

Python 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin

extension module ‘readline’ loaded from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/readline.cpython-310-darwin.so’

extension module ‘readline’ executed from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/readline.cpython-310-darwin.so’

import ‘readline’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x103099540>
/usr/local/bin/python3: can’t open file ‘/Users/bealsie.folder/’: [Errno 2] No such file or directory

cd ‘’ && ‘/usr/local/bin/python3’ -d -v -i -O -S -t ‘’ && echo Exit status: ? && exit cd '' && '/usr/local/bin/python3' -d -v -i -O -S -t '<your script here>' && echo Exit status: ? && exit 1
File “”, line 1
cd ‘’ && ‘/usr/local/bin/python3’ -d -v -i -O -S -t ‘’ && echo Exit status: ? && exit cd '' && '/usr/local/bin/python3' -d -v -i -O -S -t '<your script here>' && echo Exit status: ? && exit 1
^^
SyntaxError: invalid syntax

please help as I don’t have any clue what I’m doing hence the tutorial at the beginning of this lol

thanks for all input

Nathan

also I have homebrew on my system if can help be great

the website was jouncfe dottt com slash from-zero

sorry didn’t realise it never showed before I sent the help message

Last login: Wed Apr 3 13:47:54 on ttys000

/Users/bealsie.folder/.zprofile:4: no such file or directory: /opt/homebrew/bin/brew

~ Python3 -v

import _frozen_importlib # frozen

import _imp # builtin

import ‘_thread’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘_warnings’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘_weakref’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘_io’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘marshal’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘posix’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘_frozen_importlib_external’ # <class ‘_frozen_importlib.FrozenImporter’>

installing zipimport hook

import ‘time’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘zipimport’ # <class ‘_frozen_importlib.FrozenImporter’>

installed zipimport hook

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/encodings/pycache/init.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/encodings/init.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/encodings/pycache/init.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/codecs.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/codecs.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/codecs.cpython-310.pyc’

import ‘_codecs’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘codecs’ # <_frozen_importlib_external.SourceFileLoader object at 0x108bf7370>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/encodings/pycache/aliases.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/encodings/aliases.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/encodings/pycache/aliases.cpython-310.pyc’

import ‘encodings.aliases’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c50940>

import ‘encodings’ # <_frozen_importlib_external.SourceFileLoader object at 0x108bf71f0>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/encodings/pycache/utf_8.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/encodings/utf_8.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/encodings/pycache/utf_8.cpython-310.pyc’

import ‘encodings.utf_8’ # <_frozen_importlib_external.SourceFileLoader object at 0x108bf70d0>

import ‘_signal’ # <class ‘_frozen_importlib.BuiltinImporter’>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/io.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/io.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/io.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/abc.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/abc.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/abc.cpython-310.pyc’

import ‘_abc’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘abc’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c50c70>

import ‘io’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c50a60>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/site.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/site.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/os.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/os.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/stat.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/stat.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/stat.cpython-310.pyc’

import ‘_stat’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘stat’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c52e90>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/_collections_abc.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/_collections_abc.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/_collections_abc.cpython-310.pyc’

import ‘_collections_abc’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c531f0>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/posixpath.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/posixpath.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/posixpath.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/genericpath.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/genericpath.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/genericpath.cpython-310.pyc’

import ‘genericpath’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c89a20>

import ‘posixpath’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c53280>

import ‘os’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c51ab0>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/_sitebuiltins.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/_sitebuiltins.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/_sitebuiltins.cpython-310.pyc’

import ‘_sitebuiltins’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c52b90>

Processing user site-packages

Processing global site-packages

Adding directory: ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages’

Processing .pth file: ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/pycache/init.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/init.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/pycache/init.cpython-310.pyc’

import ‘_distutils_hack’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c8aad0>

import ‘site’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c51480>

Python 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin

Type “help”, “copyright”, “credits” or “license” for more information.

extension module ‘readline’ loaded from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/readline.cpython-310-darwin.so’

extension module ‘readline’ executed from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/readline.cpython-310-darwin.so’

import ‘readline’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x108c8ada0>

import ‘atexit’ # <class ‘_frozen_importlib.BuiltinImporter’>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/rlcompleter.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/rlcompleter.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/rlcompleter.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/inspect.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/inspect.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/inspect.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/ast.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ast.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/ast.cpython-310.pyc’

import ‘_ast’ # <class ‘_frozen_importlib.BuiltinImporter’>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/contextlib.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/contextlib.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/pycache/init.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/init.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/pycache/init.cpython-310.pyc’

import ‘itertools’ # <class ‘_frozen_importlib.BuiltinImporter’>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/keyword.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/keyword.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/keyword.cpython-310.pyc’

import ‘keyword’ # <_frozen_importlib_external.SourceFileLoader object at 0x108ebca90>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/operator.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/operator.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/operator.cpython-310.pyc’

import ‘_operator’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘operator’ # <_frozen_importlib_external.SourceFileLoader object at 0x108ebcb50>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/reprlib.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/reprlib.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/reprlib.cpython-310.pyc’

import ‘reprlib’ # <_frozen_importlib_external.SourceFileLoader object at 0x108ebcd60>

import ‘_collections’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘collections’ # <_frozen_importlib_external.SourceFileLoader object at 0x108d1e680>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/functools.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/functools.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/functools.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/types.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/types.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/types.cpython-310.pyc’

import ‘types’ # <_frozen_importlib_external.SourceFileLoader object at 0x108ebe6b0>

import ‘_functools’ # <class ‘_frozen_importlib.BuiltinImporter’>

import ‘functools’ # <_frozen_importlib_external.SourceFileLoader object at 0x108ebdae0>

import ‘contextlib’ # <_frozen_importlib_external.SourceFileLoader object at 0x108d1d420>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/enum.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/enum.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/enum.cpython-310.pyc’

import ‘enum’ # <_frozen_importlib_external.SourceFileLoader object at 0x108d1dcf0>

import ‘ast’ # <_frozen_importlib_external.SourceFileLoader object at 0x108cd1330>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/dis.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/dis.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/dis.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/opcode.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/opcode.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/opcode.cpython-310.pyc’

extension module ‘_opcode’ loaded from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/_opcode.cpython-310-darwin.so’

extension module ‘_opcode’ executed from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/_opcode.cpython-310-darwin.so’

import ‘_opcode’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x108f21060>

import ‘opcode’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f20df0>

import ‘dis’ # <_frozen_importlib_external.SourceFileLoader object at 0x108cd1ae0>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/pycache/abc.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/abc.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/pycache/abc.cpython-310.pyc’

import ‘collections.abc’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f21f60>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/pycache/init.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/init.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/pycache/init.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/warnings.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/warnings.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/warnings.cpython-310.pyc’

import ‘warnings’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f21ab0>

import ‘importlib’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f21d20>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/pycache/machinery.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/machinery.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/pycache/machinery.cpython-310.pyc’

import ‘importlib.machinery’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f215d0>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/linecache.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/linecache.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/linecache.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/tokenize.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tokenize.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/tokenize.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/re.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/re.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/re.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/sre_compile.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/sre_compile.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/sre_compile.cpython-310.pyc’

import ‘_sre’ # <class ‘_frozen_importlib.BuiltinImporter’>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/sre_parse.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/sre_parse.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/sre_parse.cpython-310.pyc’

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/sre_constants.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/sre_constants.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/sre_constants.cpython-310.pyc’

import ‘sre_constants’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f23fd0>

import ‘sre_parse’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f23820>

import ‘sre_compile’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f22f20>

import ‘_locale’ # <class ‘_frozen_importlib.BuiltinImporter’>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/copyreg.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copyreg.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/copyreg.cpython-310.pyc’

import ‘copyreg’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f59b70>

import ‘re’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f226b0>

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/token.cpython-310.pyc matches /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/token.py

code object from ‘/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pycache/token.cpython-310.pyc’

import ‘token’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f59de0>

import ‘tokenize’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f20f40>

import ‘linecache’ # <_frozen_importlib_external.SourceFileLoader object at 0x108f212a0>

import ‘inspect’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c8af80>

import ‘rlcompleter’ # <_frozen_importlib_external.SourceFileLoader object at 0x108c89ed0>

This is exactly (what im saying is happening incase I confused anyone)

Please read the pinned thread, and format everything that you copy and paste from the terminal as multi-line code, so that it can be read properly. You can edit your posts by clicking the pencil icon on each. (You may need to redo the copy-and-paste, because the forum tries to “auto-correct” certain text.)

Please also try to make sure it is clear what parts you are typing, and what parts are shown back to you. It may help to break it up into several blocks, and use complete sentences in between to walk us through what you are trying to do, step by step.

Thank you for your comments. I will definitely do as you point out, I was not sure how to fix those errors and it was my first post so I never knew how things would look once posted. I knew as soon as I posted that there would be an issue though not knew how to fix that. I think I do now and will try to fix it and redo it.

cheers