Phani Siriki
2018-02-06 16:14:46 UTC
Hi All
I am using chaos calmer build and installed python on usb. When i tried to
install python-pip, it gives me below error. However, pip is installed. But
when I tried to run it, it says command not found. Could some one help me
on this?
*Version*
*======*
***@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Chaos Calmer'
DISTRIB_REVISION='unknown'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer 15.05'
DISTRIB_TAINTS='no-all'
*Installing Python-pip*
***@OpenWrt:~# opkg install -d usb python-pip
Installing python-pip (1.5.6-1) to usb...
Downloading
http://archive.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages//python-pip_1.5.6-1_ar71xx.ipk
.
mv: can't rename 'easy-install.pth': No such file or directory
mv: can't rename 'site.py': No such file or directory
Configuring python-pip.
grep: /usr/lib/opkg/info/python-pip.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/python-pip.list': No such file or
directory
***@OpenWrt:~# pi
pidof ping ping6 pip pip2 pip2.7
pivot_root
***@OpenWrt:~# pip
-ash: pip: not found
***@OpenWrt:~# which pip
/usr/bin/pip
***@OpenWrt:~#
***@OpenWrt:~# ls -l /usr/bin/pip
lrwxrwxrwx 1 root root 20 Feb 6 16:05 /usr/bin/pip ->
/mnt/usb/usr/bin/pip
*PATH:*
export USB=/mnt/usb
export PATH=$PATH:$USB/usr/bin:$USB/usr/sbin # This PATH is dependent on
existing $PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$USB/lib:$USB/usr/lib
export PYTHONPATH=$PYTHONPATH:$USB/lib:$USB/usr/lib
Best Regards
Phani
I am using chaos calmer build and installed python on usb. When i tried to
install python-pip, it gives me below error. However, pip is installed. But
when I tried to run it, it says command not found. Could some one help me
on this?
*Version*
*======*
***@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Chaos Calmer'
DISTRIB_REVISION='unknown'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer 15.05'
DISTRIB_TAINTS='no-all'
*Installing Python-pip*
***@OpenWrt:~# opkg install -d usb python-pip
Installing python-pip (1.5.6-1) to usb...
Downloading
http://archive.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages//python-pip_1.5.6-1_ar71xx.ipk
.
mv: can't rename 'easy-install.pth': No such file or directory
mv: can't rename 'site.py': No such file or directory
Configuring python-pip.
grep: /usr/lib/opkg/info/python-pip.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/python-pip.list': No such file or
directory
***@OpenWrt:~# pi
pidof ping ping6 pip pip2 pip2.7
pivot_root
***@OpenWrt:~# pip
-ash: pip: not found
***@OpenWrt:~# which pip
/usr/bin/pip
***@OpenWrt:~#
***@OpenWrt:~# ls -l /usr/bin/pip
lrwxrwxrwx 1 root root 20 Feb 6 16:05 /usr/bin/pip ->
/mnt/usb/usr/bin/pip
*PATH:*
export USB=/mnt/usb
export PATH=$PATH:$USB/usr/bin:$USB/usr/sbin # This PATH is dependent on
existing $PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$USB/lib:$USB/usr/lib
export PYTHONPATH=$PYTHONPATH:$USB/lib:$USB/usr/lib
Best Regards
Phani