close

[Solved] Pip command line “ImportError: No Module Named Typing”

Hello Guys, How are you all? Hope You all Are Fine. When I Run the Command gives me the following error: Pip command line “ImportError: No Module Named Typing” in Python. So Here I am Explain to you all the possible solutions here.

Without Wasting your time, Lets start This Article to Solve This Error.

How Pip command line “ImportError: No Module Named Typing” Error Occurs ?

When I Run the Command gives me the following error:

C:\Python34\Scripts> pip install pygame

Error Stack :

Traceback (most recent call last):
  File "C:\Python34\lib\runpy.py", line 171, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python34\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\pip.exe\__main__.py", line 5, in <module>
  File "C:\Python34\lib\site-packages\pip\__init__.py", line 1, in <module>
    from typing import List, Optional
ImportError: No module named 'typing'

How To Solve Pip command line “ImportError: No Module Named Typing” Error ?

Question: How To Solve Pip command line “ImportError: No Module Named Typing” Error ?
Answer: I Think You are importing typing package but you do not have it installed. Try installing the package: pip install typing. I Think Your Error Might be Solved Now Or Else A much better fix is to upgrade to a recent Python version which has it included in the standard library. Chances are the library you are trying to use won’t work very well in 3.4 either.

Solution 1

Just open where your python is installed. Or specify the path of your python and then try to update pip just like below.

E:\Python>pip install --upgrade pip

I had the same issue. I also first tried the pip3 install pygame which was previously mentioned, before running this line. You may have to do that first. The individual who said to try

pip install typing

that line of code will simply produce the same error. To fix you have to use to aforementioned command(s).

Solution 2

try to manually download:

  1. wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
  2. and then run python get-pip.py

Solution 3

I Think You are importing typing package but you do not have it installed. Try installing the package:

pip install typing

Solution 4

Also A much better fix is to upgrade to a recent Python version which has it included in the standard library. Chances are the library you are trying to use won’t work very well in 3.4 either.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment