user23642684
user23642684

Reputation: 3

ModuleNotFoundError: No module named 'urllib3.packages.six.moves'

I get error on import requests

Ive tried uninstall and reinstall and everything ive seen first page of google and hoping for some more assistance

Both of these are in result when I run pip list:
six 1.17.0
urllib3 2.2.3

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[3], line 2
      1 import pandas as pd
----> 2 import requests
      3 import numpy as np
      4 import csv

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\requests\__init__.py:43
      1 # -*- coding: utf-8 -*-
      2 
      3 #   __
      4 #  /__)  _  _     _   _ _/   _
      5 # / (   (- (/ (/ (- _)  /  _)
      6 #          /
      8 """
      9 Requests HTTP Library
     10 ~~~~~~~~~~~~~~~~~~~~~
   (...)
     40 :license: Apache 2.0, see LICENSE for more details.
     41 """
---> 43 import urllib3
     44 import chardet
     45 import warnings
...
----> 2 from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead
      4 # Base Exceptions
      7 class HTTPError(Exception):

ModuleNotFoundError: No module named 'urllib3.packages.six.moves'

Upvotes: 0

Views: 140

Answers (1)

dev_light
dev_light

Reputation: 4086

Similar issue raised here and some users suggested uninstalling and reinstalling urllib3 and six. Try that and if that doesn't work, try other suggested solutions. See https://github.com/urllib3/urllib3/issues/1518

Upvotes: 0

Related Questions