Tips On Solving The Error Pip command line “ImportError: No Module Named Typing”

When launching the command, you may receive 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'

​​Tips On Solving The Error Pip command line “ImportError: No Module Named Typing”

We believe you’re importing a type package but installed it. Install the package by running pip install. We think your error has been resolved for the time being. A far better solution is to update to a current Python version in the standard library. Chances are, the library you’re attempting to use will also fail miserably in 3.4.

Solution 1

Simply navigate to the location where Python is installed. Alternatively, give your Python’s path and then attempt to update pip as shown below.

E:\Python>pip install –upgrade pip

We experienced the same problem. Before using this line, we also tried the previously suggested pip3 install pygame. That may be the first thing you need to do. The individual who suggested trying

pip install typing

That line of code will produce a similar problem. You should execute the above command to resolve the problem (s).

Option 2

Attempt to download manually:

1. Download https://bootstrap.pypa.io/pip/2.7/get-pip.py

2. Next, launch python get-pip.py.

Option 3

We believe you’re importing a type package but installed it. Install the package as follows:

pip install typing

Option 4

A far better solution is to update to a current Python version that has it in your standard library. It’s likely that the library you’re attempting to use will also fail to function properly in 3.4.

Conclusion

We hope you found our article about fixing Pip command line “ImportError: No Module Named Typing” error useful. We understand that dealing with this mistake can be annoying; therefore, we hope that our information has assisted you in resolving it. Please leave a comment if you have any further questions or concerns regarding this issue. Thank you for taking the time to read; we are always delighted anytime one of our pieces can give important information on this topic!


Related articles

Scroll to Top