Re: [OpenWrt-Users] Pip command found error even though pip is installed

2018-02-06 Thread Phani Siriki
Hi Lars

Thank you for your reply.

Yes. "python -m pip" worked.

Best Regards
Phani

On Tue, Feb 6, 2018 at 5:50 PM, Lars Kruse  wrote:

> Hello Phani,
>
>
> Am Tue, 6 Feb 2018 10:14:46 -0600
> schrieb Phani Siriki :
>
> > 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?
>
> did you take a look at the list of files belonging to the "python-pip"
> package?
>
>  opkg files python-pip
>
> I could imagine, that the package contains only the python module - and
> maybe not a script in /usr/bin.
>
> Maybe "python -m pip ..." works?
> (just wild guessing)
>
> Lars
> ___
> openwrt-users mailing list
> openwrt-users@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
>
___
openwrt-users mailing list
openwrt-users@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users


Re: [OpenWrt-Users] Pip command found error even though pip is installed

2018-02-06 Thread Lars Kruse
Hello Phani,


Am Tue, 6 Feb 2018 10:14:46 -0600
schrieb Phani Siriki :

> 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?

did you take a look at the list of files belonging to the "python-pip"
package?

 opkg files python-pip

I could imagine, that the package contains only the python module - and
maybe not a script in /usr/bin.

Maybe "python -m pip ..." works?
(just wild guessing)

Lars
___
openwrt-users mailing list
openwrt-users@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users


Re: [OpenWrt-Users] Pip command not found error even though pip is installed

2018-02-06 Thread Phani Siriki
Changed subject line.

On Tue, Feb 6, 2018 at 10:14 AM, Phani Siriki  wrote:

> 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*
> *==*
> root@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*
>
> root@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
>
> root@OpenWrt:~# pi
> pidof   pingping6   pip pip2pip2.7
> pivot_root
> root@OpenWrt:~# pip
> -ash: pip: not found
>
> root@OpenWrt:~# which pip
> /usr/bin/pip
> root@OpenWrt:~#
> root@OpenWrt:~# ls -l /usr/bin/pip
> lrwxrwxrwx1 root root20 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
>
>
>
___
openwrt-users mailing list
openwrt-users@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users


[OpenWrt-Users] Pip command found error even though pip is installed

2018-02-06 Thread Phani Siriki
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*
*==*
root@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*

root@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

root@OpenWrt:~# pi
pidof   pingping6   pip pip2pip2.7
pivot_root
root@OpenWrt:~# pip
-ash: pip: not found

root@OpenWrt:~# which pip
/usr/bin/pip
root@OpenWrt:~#
root@OpenWrt:~# ls -l /usr/bin/pip
lrwxrwxrwx1 root root20 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
___
openwrt-users mailing list
openwrt-users@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users