Hi Lars

I am now facing problem with python on a different router. I have installed
python on USB stick and I could not execute it.

oot@Mesh-30:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.8M      4.8M         0 100% /rom
tmpfs                    61.3M   1012.0K     60.3M   2% /tmp
/dev/mtdblock3            2.0M    756.0K      1.3M  37% /overlay
overlayfs:/overlay        2.0M    756.0K      1.3M  37% /
tmpfs                   512.0K         0    512.0K   0% /dev
*/dev/sda1                29.2G    401.1M     27.3G   1% /mnt/usb*

root@Mesh-30:~# opkg files python
Package python (2.7.9-6) is installed on usb and has the following files:
root@Mesh-30:~#
root@Mesh-30:~# which python
/usr/bin/python
root@Mesh-30:~# ls -l /usr/bin/python
lrwxrwxrwx    1 root     root            23 Feb 14 14:39 /usr/bin/python ->
/mnt/usb/usr/bin/python

root@Mesh-30:~# python
python     python2    python2.7

root@Mesh-30:~# python
-ash: python: not found

Tab autocompletion works, however it says command not found. Could you
please suggest if you have any idea on this?

Best Regards
Phani






On Tue, Feb 6, 2018 at 6:11 PM, Phani Siriki <yvsg.pha...@gmail.com> wrote:

> 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 <li...@sumpfralle.de> wrote:
>
>> Hello Phani,
>>
>>
>> Am Tue, 6 Feb 2018 10:14:46 -0600
>> schrieb Phani Siriki <yvsg.pha...@gmail.com>:
>>
>> > 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

Reply via email to