I had similar issue when trying to install package via pip
with python 3.6
on windows
. (pip is supposed to work out of the box with this install)
The problem was not running as administrator.
Running cmd as administrator and then installing my package worked:
python -m pip install pylint