How to use pip install with SoftwareDepot?
Hi …
sorry what is pip install?
I think he’s talking about the package manager for Python: https://en.wikipedia.org/wiki/Pip_(package_manager)
Yes, I’m talking about it, how to install packages from it
Well if you haven’t already, you have to install pip first…
https://pip.pypa.io/en/stable/installing/
…and after that you should be good to go. The integration with Haiku and pip is not all that great as when you install Python packages it spews out a bunch of erroneous nonsense. However, as far as I can tell, packages get installed successfully and work (well it depends on the package as I noticed bpython doesn’t work).
Why you want to use phyton packages? Is there really a need to do it? To install in haiku you can use haiku packages.
The haiku packages can install all included files to the right position (write protected areas too). Phyton packages could get problems here.
If you want to create packages out of git, you can try my package creator: www.software.besly.de
http://old.besly.de/menu/search/archiv/sys/hpkg-creator_eng.html
I need install Django
Django installed
Always better than unchained
More seriously, pip is builtin in python 3.5+, but for older python version, like on other plateform, user must install pip himself before being able to use this python-centric package manager.
Contrary to debian, I hope we won’t wrap python pip packages into Haiku packages, but stay with pip for everything concerning the python ecosystem on Haiku.
I’ve experienced a lot of frustration with python packages installed along debian packages which conflict with the one you expect to easy install (well, easy_install in fact it is ) via pip tool.
What about programs depending on Python packages, like Calibre?
What should we do to guarantee the installed Calibre package will just work without throwing cryptic Python errors in the face of the users?
I’m really interested.
For Python-based app like Calibre, what would be best is to use python’s virtualenv to install their requirements.
I would use a different approach: let Haiku set up packages for the system python as needed to install packaged python-dependant apps, and let people who want to use pip or otherwise work with Python do so in virtualenv or in their home directory.
or in un-packaged/lib/pythonX/site-packages, as already possible today.
Hello Galewinston,
welcome to Haiku. I hope you have with Haiku.
A little hint, Haiku isn’t a Linux, so sudo apt-get doesn’t exists and work.
Regards lorglas
Neither sudo nor apt is available on Haiku
These will explain correct way to use pip
https://docs.python.org/3/installing/index.html
https://packaging.python.org/tutorials/installing-packages/
I forgot to mention that files that are built, will be placed in your /boot/system/non-packaged folders.
What if Haiku let Ubuntu switchers know that? Maybe have an apt stub that could read something like
Haiku uses a more powerful and modular package management system, PackageFS. To add or remove hpkg or upgrade Haiku, use pkgman
Linux systems are a mess, there are countless commands you would need to implement, we also install the user guide per default, and the shell tells you about commands that don’t exist. Not sure this would be of much benefit imo.
I don’t think we need to go that far. It should be sufficient to point newcomers to the relevant sections in the user guide.
Haiku is not linux, you cant count on “this is unix, i know this”. Also why should Haiku positively discriminate ubuntu users?