no module named urllib.parse (How should I install it?)

后端 未结 11 624
青春惊慌失措
青春惊慌失措 2020-12-03 02:49

I\'m trying to run a REST API on CentOS 7, I read urllib.parse is in Python 3 but I\'m using Python 2.7.5 so I don\'t know how to install this module.

I installed al

11条回答
  •  佛祖请我去吃肉
    2020-12-03 03:06

    For python 3 pip install urllib

    find the utils.py in %PYTHON_HOME%\Lib\site-packages\solrcloudpy\utils.py

    change the import urlparse to

    from urllib import parse as urlparse
    

提交回复
热议问题