When trying to install package using pip sometime this kinds of permission denied error occurs.
$ python -m pip install pylint
Output Error:
self.move_wheel_files(self.source_dir, root=root)
File "/home/rana/anaconda2/lib/python2.7/site-packages/pip/req/req_install.py", line 998, in move_wheel_files
isolated=self.isolated,
File "/home/rana/anaconda2/lib/python2.7/site-packages/pip/wheel.py", line 339, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/rana/anaconda2/lib/python2.7/site-packages/pip/wheel.py", line 317, in clobber
shutil.copyfile(srcfile, destfile)
File "/home/rana/anaconda2/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/home/rana/anaconda2/lib/python2.7/site-packages/backports.functools_lru_cache-1.3-py3
.5-nspkg.pth'
To solve this we need to specify --user after the previous command .
$python -m pip install pylint --user
This will solve the problem.
$ python -m pip install pylint
Output Error:
self.move_wheel_files(self.source_dir, root=root)
File "/home/rana/anaconda2/lib/python2.7/site-packages/pip/req/req_install.py", line 998, in move_wheel_files
isolated=self.isolated,
File "/home/rana/anaconda2/lib/python2.7/site-packages/pip/wheel.py", line 339, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/rana/anaconda2/lib/python2.7/site-packages/pip/wheel.py", line 317, in clobber
shutil.copyfile(srcfile, destfile)
File "/home/rana/anaconda2/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/home/rana/anaconda2/lib/python2.7/site-packages/backports.functools_lru_cache-1.3-py3
.5-nspkg.pth'
To solve this we need to specify --user after the previous command .
$python -m pip install pylint --user
This will solve the problem.