linux - Unable to download mongo-connector using pip -
i trying install mongo-connector
on amazon-ec2 instance
using following command:
pip install mongo-connector
but following error flashes everytime:
exception: traceback (most recent call last): file "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) file "/usr/local/lib/python2.7/site-packages/pip/commands/install.py", line 31 7, in run prefix=options.prefix_path, file "/usr/local/lib/python2.7/site-packages/pip/req/req_set.py", line 736, in install requirement.uninstall(auto_confirm=true) file "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 742 , in uninstall paths_to_remove.remove(auto_confirm) file "/usr/local/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 1 15, in remove renames(path, new_path) file "/usr/local/lib/python2.7/site-packages/pip/utils/__init__.py", line 267, in renames shutil.move(old, new) file "/usr/lib64/python2.7/shutil.py", line 300, in move rmtree(src) file "/usr/lib64/python2.7/shutil.py", line 252, in rmtree onerror(os.remove, fullname, sys.exc_info()) file "/usr/lib64/python2.7/shutil.py", line 250, in rmtree os.remove(fullname) oserror: [errno 13] permission denied: '/usr/lib/python2.7/dist-packages/request s/sessions.pyo'
i thought might issue root permissions, tried :
sudo pip install mongo-connector
but says ,
sudo: pip: command not found
i using pip 8.1.2
, python 2.7.12
.
any appreciated!
i solved using following command:
sudo `which pip`install mongo-connector
Comments
Post a Comment