from packaging import version as pack_version ImportError: No module named packaging

Cameron Simpson cs at cskk.id.au
Fri Oct 27 18:50:21 EDT 2017


On 27Oct2017 15:56, David Gabriel <davidgab283 at gmail.com> wrote:
>I am running a python code that generates for me this error :
>
>from packaging import version as pack_version
>ImportError: No module named packaging
>
>I googled it and I have found so many suggestions regarding updating 'pip'
>and installing python-setuptools but all of these did not fix this issue.

You need to fetch the "packaging" module. That is what pip is for, eg:

  pip install --user packaging

The --user is to install it in your "personal" python library space.

Cheers,
Cameron Simpson <cs at cskk.id.au> (formerly cs at zip.com.au)



More information about the Python-list mailing list