2016-09-13 5 views
0

Ich versuche mongo-connector auf Amazon-EC2 instance zum Download installieren Sie den folgenden Befehl:kann nicht Mongo-Stecker mit pip

pip install mongo-connector 

aber folgende Fehler blitzt jedes Mal: ​​

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' 

dachte ich, das sein könnte ein Problem mit root-Berechtigungen, so habe ich versucht:

sudo pip install mongo-connector 
Aber 0 das sagt,

sudo: pip: command not found 

ich pip 8.1.2 verwende, Python 2.7.12.

Jede Hilfe wäre willkommen!

Antwort

1

Ich löste dies durch den folgenden Befehl eingeben:

sudo `which pip`install mongo-connector 
Verwandte Themen