ESS
ESS

Reputation: 370

Getting "ImportError: No module named parse" while trying to pip install multiparse for Python 2.7

I am trying to install multipart and simply running the command

pip install multipart

But I am getting and error

 Complete output (7 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/cn/h4g68yd17jq5fx0cqf0fss180000gn/T/pip-install-w_zyum/multipart/setup.py", line 7, in <module>
    from multipart import __version__, __author__, __license__, __doc__
  File "multipart.py", line 22, in <module>
    from urllib.parse import parse_qs
ImportError: No module named parse

I have checked Python and PIP versions. I have Python 2.7 and 3.7 installed on the system. Doing -

pip3 install multipart

Returns -

Requirement already satisfied: multipart in /usr/local/lib/python3.7/site-packages (0.2)

Edit - It is for a legacy work project which is in Python 2.7 and can't be updated to 3x for now.

Upvotes: 0

Views: 2141

Answers (1)

inxp
inxp

Reputation: 249

multipart 0.2 is available for python 3 only.

for python 2.7 you can install multipart version 0.1 by

pip install multipart==0.1

Upvotes: 1

Related Questions