saving . . . saved Syntax error has been deleted. Syntax error has been hidden .
Syntax error
Title
Question
It gives syntax error everytime I try to install ipython, numpy and matplotlib.

Python-3.4.3 Getting-started-with-IPython 02-03 min 10-20 sec 24-11-20, 8:31 p.m. Aparajita28

Answers:

Please paste the syntax error that is showing on your screen here, so that we can help you debug the issue
03-12-20, 12:02 p.m. ankitrj.iitb
C:\Users\ADMIN>ipython3
Traceback (most recent call last):
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\prompt_toolkit\application\current.py", line 6, in <module>
    from contextvars import ContextVar
ModuleNotFoundError: No module named 'contextvars'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python36-32\Scripts\ipython3.exe\__main__.py", line 5, in <module>
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\IPython\__init__.py", line 56, in <module>
    from .terminal.embed import embed
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\IPython\terminal\interactiveshell.py", line 19, in <module>
    from prompt_toolkit.enums import DEFAULT_BUFFER, EditingMode
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\prompt_toolkit\__init__.py", line 16, in <module>
    from .application import Application
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\prompt_toolkit\application\__init__.py", line 1, in <module>
    from .application import Application
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\prompt_toolkit\application\application.py", line 38, in <module>
    from prompt_toolkit.buffer import Buffer
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\prompt_toolkit\buffer.py", line 28, in <module>
    from .application.current import get_app
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\prompt_toolkit\application\current.py", line 8, in <module>
    from prompt_toolkit.eventloop.dummy_contextvars import ContextVar  # type: ignore
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\prompt_toolkit\eventloop\__init__.py", line 1, in <module>
    from .async_generator import generator_to_async_generator
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\prompt_toolkit\eventloop\async_generator.py", line 5, in <module>
    from typing import AsyncGenerator, Callable, Iterable, TypeVar, Union
ImportError: cannot import name 'AsyncGenerator'
19-07-21, 10:01 a.m. soniamarkose@stxaviersaluva.ac.in

Login to add comment


Log-in to answer to this question.