Hi Lars
Thanks for your reply.
pip has following code.
root@OpenWrt:~# cat /mnt/usb/usr/bin/pip
#!/usr/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.5.6','console_scripts','pip'
__requires__ = 'pip==1.5.6'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
)
root@OpenWrt:~#
root@OpenWrt:~# ls /usr/bin/python2.7
ls: /usr/bin/python2.7: No such file or directory
root@OpenWrt:~#
root@OpenWrt:~#
root@OpenWrt:~# which python2.7
/mnt/usb/usr/bin/python2.7
I will try to use micro python and see if it works for me.
Best Regards
Phani
On Wed, Apr 18, 2018 at 9:51 PM, Lars Kruse <[email protected]> wrote:
> Hello Phani,
>
>
> Am Wed, 18 Apr 2018 18:14:28 -0500
> schrieb Phani Siriki <[email protected]>:
>
>> root@OpenWrt:~# ldd /mnt/usb/usr/bin/pip
>> -ash: /mnt/usb/usr/bin/pip: not found
>> root@OpenWrt:~# ls -l /mnt/usb/usr/bin/pip
>> -rwxr-xr-x 1 root root 284 Sep 9 2015 /mnt/usb/usr/bin/pip
>
> another possible cause for the above error message could be a wrong shebang
> (the first line in a script indicating its interpreter).
> Usually this would expose a different error message - but maybe these
> messages are simplified in busybox.
>
> If the shebang is fine, you will need to find another reason, why this file
> could be non-executable.
>
> btw.: if you really need a full Python environment (incl. third-party
> modules),
> then maybe an embedded environment like OpenWrt could turn out to complicate
> this task a bit too much. Could micropython be an option instead? Or a
> distribution that is not targeted at embedded devices?
>
> Cheers,
> Lars
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users