I have the following when I run pip list - I am on 2.7 over mac os:
➜ python --version
Python 2.7.10
➜ pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Package Version
------------------ -------
pathlib 1.0.1
pip 19.0.2
python-http-client 3.2.7
setuptools 40.8.0
wheel 0.33.0
Now in my code I have:
from pathlib import Path
and when I run from command line I get:
Traceback (most recent call last):
File "testexe.py", line 7, in <module>
from pathlib import Path
ImportError: No module named pathlib