!pip install fastai.vision.all (using jupiter notebook)


I tried to run the codes of the first chapter of fast.ai book. Unfortunatly when i try to run <<from fastai.vision.all import * >> this error message shows up <>.

I tried to install the package with <<!pip install fastai.vision.all>> but this error shows up:

AttributeError Traceback (most recent call last)
Cell In[19], line 1
----> 1 get_ipython().system(‘pip install fastai --upgrade’)

File /lib/python3.11/site-packages/IPython/core/interactiveshell.py:2605, in InteractiveShell.system_piped(self, cmd)
2600 raise OSError(“Background processes not supported.”)
2602 # we explicitly do NOT return the subprocess status code, because
2603 # a non-None value would trigger :func:sys.displayhook calls.
2604 # Instead, we store the exit_code in user_ns.
→ 2605 self.user_ns[‘_exit_code’] = system(self.var_expand(cmd, depth=1))

File /lib/python3.11/site-packages/IPython/utils/_process_posix.py:129, in ProcessHandler.system(self, cmd)
127 # Patterns to match on the output, for pexpect. We read input and
128 # allow either a short timeout or EOF
→ 129 patterns = [pexpect.TIMEOUT, pexpect.EOF]
130 # the index of the EOF pattern in the list.
131 # even though we know it’s 1, this call means we don’t have to worry if
132 # we change the above list, and forget to change this value:
133 EOF_index = patterns.index(pexpect.EOF)

AttributeError: module ‘pexpect’ has no attribute ‘TIMEOUT’

What should i do ?