Personal two cents: On most modern linuxes, you shouldn't be installing mako via pip, and much less even numpy (because that's a huge compile including fortran interfaces).
I just go and remove pip from the list of preferred packagers on my systems¹. Never ran into problems with that. Now, I've never had the need to install a python package that wasn't there as a distro package in the last months on my recent systems, and on my retro systems I typically not use pybombs, but your needs seem to be different. But that's the problem here: PyBOMBS has to make sume assumptions on how you want to install packages, and these include that pip needs to run as root. Now, it seems that your ~/.local/bin/pip doesn't have the file priorities set to allow others (including root, as it seems) to execute it. You could check with "stat /home/nae/.local/bin/pip" what the "Access" rights are. Should be something like 0755 / -rwxr-xr-x; my guess is the last r-x is missing. Best regards, Marcus ¹ I'm even in personal disagreement with the folks maintaining Pybombs on whether pip should be allowed to install things globally at all if a package could potentially also be installed via native methods. But generally, Pybombs is an awesome tool, and so is pip. On 21.03.2017 19:45, Naceur wrote: > Thank you for your reply. However, I don't want to have anything done > manually. > Maybe I need rephrasing my initial post: > > It is not that I want PyBOMBS to to do a pip --user but I am more wondering > why it is saying: > >> PyBOMBS.PackageManager - DEBUG - Using packager pip >> PyBOMBS.Packager.pip - DEBUG - Calling `/home/nae/.local/bin/pip install >> pytun' >> PyBOMBS.monitor_process() - DEBUG - Running with elevated privileges. >> PyBOMBS._process_thread() - DEBUG - Executing command `['sudo', '-H', >> '/home/nae/.local/bin/pip', 'install', 'pytun']' >> sudo: unable to execute /home/nae/.local/bin/pip: Permission denied >> PyBOMBS.monitor_process() - DEBUG - Thread signaled termination or >> returned >> PyBOMBS.monitor_process() - DEBUG - Return value: 1 > why is it going straight to elevated priviliges. > I looked for a package that needs installation through pip and found mako > and numpy. > I realized that when uhd was installed it needed mako as a prerequesite and > it did install it without the elevation and error. > > Thanks, > > > > -- > View this message in context: > http://gnuradio.4.n7.nabble.com/installing-a-python-package-without-elevated-privileges-tp63183p63226.html > Sent from the GnuRadio mailing list archive at Nabble.com. > > _______________________________________________ > Discuss-gnuradio mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
