WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Impossible to find python pip and setuptools  (Read 4266 times)

Offline Sonlis

  • Newbie
  • *
  • Posts: 8
Impossible to find python pip and setuptools
« on: February 05, 2020, 09:27:40 AM »
Hey everyone,

Discovered Tinycore a few days ago, and I really love it !

I am trying to setup a project and it, but I need pip and setuptools. I couldn't find them, so I searched the internet and this forum and apparently, it should be in python-distribute.tcz, but impossible to find this package from the app browser or tce-load -iw python-distribute. I tried to install everything related to python, but it is still not found. Could you help me locate those tools please ?

Thank you very much !

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Impossible to find python pip and setuptools
« Reply #1 on: February 05, 2020, 10:05:29 AM »
In the piCore 9.x repo there is a setuptools extension, but there are also the following files in the python extension:

/usr/local/lib/python2.7/ensurepip/_bundled/setuptools-28.8.0-py2.py3-none-any.whl
/usr/local/lib/python2.7/ensurepip/_bundled/pip-9.0.1-py2.py3-none-any.whl

Offline piCoreUser1

  • Newbie
  • *
  • Posts: 14
Re: Impossible to find python pip and setuptools
« Reply #2 on: February 05, 2020, 12:07:47 PM »
If you are using piCore-11, where there are no python tool extensions:

Code: [Select]
tce-load -iw python3.8
sudo python3 -m ensurepip
python3 -m pip install setuptools
python3 -m pip install easy_install

If you don't want to create an extension for your python programs then set up a virtual environment:
Code: [Select]
python3 -m venv /mnt/mmcblk0p2/py


Offline Sonlis

  • Newbie
  • *
  • Posts: 8
Re: Impossible to find python pip and setuptools
« Reply #3 on: February 08, 2020, 05:40:00 AM »
Thank you very much ! How could I miss this directory -.-

I am using python 2, so no uses for python 3, but thanks

Offline Sonlis

  • Newbie
  • *
  • Posts: 8
Re: Impossible to find python pip and setuptools
« Reply #4 on: February 09, 2020, 10:45:56 AM »
So I didn't want to create another topic, as it is still linked to the same project. I need the libatlas libraries, but found on the tinycore extensions repository that it is in "testing" mode. Will it be available in the future ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Impossible to find python pip and setuptools
« Reply #5 on: February 09, 2020, 11:22:54 PM »
Which repo are you speaking of - I don't see libatlas in the piCore 9.x, 10.x or 11.x repos

Offline Sonlis

  • Newbie
  • *
  • Posts: 8
Re: Impossible to find python pip and setuptools
« Reply #6 on: February 10, 2020, 12:59:54 PM »
I forgot to mention, but i'm using piCore 9.x

I found it there, guess I misunderstood something ?  http://distro.ibiblio.org/tinycorelinux/3.x/tcz/ 

I even tried to get it from there: http://tinycorelinux.net/tcz/src/libatlas, but I can't get the tar to extract the archive as I get this :

tar: invalid magic
tar: short read


Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11221
Re: Impossible to find python pip and setuptools
« Reply #7 on: February 10, 2020, 01:09:24 PM »
Hi Sonlis
tar: invalid magic
tar: short read
Sounds like a corrupted download, try downloading again. I was able to download and unpack it. To unpack it, run:
Code: [Select]
tar xf atlas3.8.3.tar.xz

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11221
Re: Impossible to find python pip and setuptools
« Reply #8 on: February 10, 2020, 01:41:30 PM »
Hi Sonlis
tar: short read
Is it possible you ran out of storage space?

Offline Sonlis

  • Newbie
  • *
  • Posts: 8
Re: Impossible to find python pip and setuptools
« Reply #9 on: February 10, 2020, 02:18:21 PM »
Hi Rich,

I downloaded it again and run tar with your options and it worked. CPU throttling is enabled however, and I have no idea how to turn it off since the explanation on the atlas do not fit for tiny core.
« Last Edit: February 10, 2020, 02:27:37 PM by Sonlis »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11221
Re: Impossible to find python pip and setuptools
« Reply #10 on: February 10, 2020, 05:24:55 PM »
Hi Sonlis
This might be of some interest:
http://math-atlas.sourceforge.net/
The  Software  link takes you to much newer versions of  ATLAS  and the  Install  link leads to a manual.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Impossible to find python pip and setuptools
« Reply #11 on: February 10, 2020, 09:28:53 PM »
« Last Edit: February 10, 2020, 09:54:45 PM by Juanito »

Offline Sonlis

  • Newbie
  • *
  • Posts: 8
Re: Impossible to find python pip and setuptools
« Reply #12 on: February 11, 2020, 03:20:44 AM »
http://math-atlas.sourceforge.net/
The  Software  link takes you to much newer versions of  ATLAS  and the  Install  link leads to a manual.

I tried to follow this already, but I couldn't find how to disable CPU throttling on tiny core. Is there any way to do so ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Impossible to find python pip and setuptools
« Reply #13 on: February 11, 2020, 03:41:17 AM »
You can do so manually by accessing the directory hierarchy under /sys/devices/system/cpu/

Edit: I'm not sure if the cpufrequtils or cpupower cli would be the correct one for the piCore kernel.
« Last Edit: February 11, 2020, 05:21:49 AM by Juanito »

Offline Sonlis

  • Newbie
  • *
  • Posts: 8
Re: Impossible to find python pip and setuptools
« Reply #14 on: February 11, 2020, 06:34:25 AM »
I used the cpufrequtils.tcz to toggle it off. However I still have problems with the Atlas installation (with the cachesize search apparently), I'll try to solve it myself. In the meantime, may I ask why some extensions are available on previous releases and not on current ones ? Could I not try to import one from a previous release ? Sorry if my question sounds stupid, I am not very acquainted with OS.

EDIT: this command did the trick for the throttling: cpufreq-set -g performance -c 0, just in case someone wonders.
« Last Edit: February 11, 2020, 06:36:44 AM by Sonlis »