Pip install pathlib

installationpippython-2.7

I work with python 2.7.8 and can't change the version of python because it affect other important programs. Continuously to Unzip zip files in folders and subfolders with python i don't know how to install "pip install pathlib". Any help would be great.

Best Solution

If on windows, type this from Command Prompt to get pathlib for Python 2.7.8: python -m pip install pathlib2

If you're on a unix distro, type this from BASH (any shell): pip install pathlib2

If on mac, from terminal: sudo easy_install pip pip install pathlib2

And now you should be able to import pathlib2 (backported version of pathlib) from Python 2.7.8.