[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Is pip3 verplaatst?



Ik heb al tijden een script lopen dat in crontab controleert of er
voor pip2 of pip3 updates zijn. Dat werkte altijd prima. Voor pip2 is
dit nog steeds zo, maar pip3 geeft nu:
    /root/bin/checkPipPackages.sh: line 10: pip3: command not found

In het crontab bestand heb ik:
    PATH=/root/bin:/usr/sbin:/usr/bin:/bin
    SHELL=/bin/bash

Een which geeft:
    which pip3
    /usr/local/bin/pip3

En met ls -l zie ik:
    -rwxr-xr-x 1 root staff  206 Mar 23 09:34 pip3
    -rwxr-xr-x 1 root staff  206 Mar 23 09:34 pip3.5

Wat kan hier aan de hand zijn?

Het vreemde is dat pip2 er ook staat, maar die staat ook nog op:
    /usr/bin/pip2.

Ik neem aan dat ik PATH kan aanpassen naar:
    PATH=/root/bin:/usr/local/bin:/usr/sbin:/usr/bin:/bin

Maar het leek me toch verstandig om te checken of er niets vreemds aan
de hand is.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


Reply to: