2017-12-05 3 views
0

Ich folge this tutorial für die Anbindung von ROS und Pavillon.Python-Paket "Toml" kann nicht installiert werden

Wenn ich laufen

make posix_sitl_default Pavillon

[ 0%] Built target git_driverframework 
[ 0%] Built target git_gps_devices 
[ 0%] Built target uorb_headers 
[ 2%] Built target df_driver_framework 
[ 3%] Built target git_mavlink2 
[ 3%] Built target git_mavlink 
[ 3%] Built target git_ecl 
[ 3%] Built target mixer_gen_legacy 
[ 4%] Generating mixer_multirotor_6dof.generated.h 
[ 4%] Generating mixer_multirotor_normalized.generated.h 
[ 4%] Generating mixer_multirotor.generated.h 
[ 5%] Built target ver_gen 
('python import error: ', ImportError('No module named toml',)) 
('python import error: ', ImportError('No module named toml',)) 

Required python packages not installed. 

On a GNU/Linux or MacOS system please run: 
    sudo pip install numpy toml 

On Windows please run: 
    easy_install numpy toml 

Required python packages not installed. 

On a GNU/Linux or MacOS system please run: 
    sudo pip install numpy toml 

On Windows please run: 
    easy_install numpy toml 

Ich bin mit Ubuntu 16.04, so dass ich mit sudo pip installieren numpy TomL aber:

The directory '/home/nando/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
The directory '/home/nando/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
Requirement already satisfied: numpy in /opt/anaconda/lib/python2.7/site-packages 
Requirement already satisfied: toml in /opt/anaconda/lib/python2.7/site-packages 

Offenbar I habe schon die anforderungen erfüllt, bekomme aber immer wieder die gleiche fehlermeldung wh de Ich führe den ersten Befehl aus. Wie kann ich das beheben?

+1

Haben Sie versucht, es mit Root-Benutzer ausführen oder mit Sudo? – planet260

+0

Ich habe es gerade gemacht, aber ich erhalte genau den gleichen Fehler. –

+0

'Wenn Sie pip mit sudo ausführen, möchten Sie vielleicht Sudos 'H-Flag'. Hast du das auch versucht? –

Antwort

0

Offenbar war das Problem, dass ich Python 2 und 3, ich war in 3. Lauf Installation TomL:

sudo -H pip2 install toml 

diese

für mich gelöst