Request to join Python Modules Team
Hi everyone, I would like to join the Python Modules Team, but I am also looking for a sponsor at the same time. I tend to write python, but also use a lot of python tools and libraries out there. So I thought I could start looking around to see what would be useful to be available in the official repos. As a way of refreshing my packaging skills, I started packaging doh-cli. It's DNS-Over-HTTPS command line client. https://salsa.debian.org/comzeradd-guest/doh-cli I'm not a maintainer, so I would appreciate if Relevant bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=958448 Relevant package build on mentors, where I've set the "Sponsor" flag already: https://mentors.debian.net/package/doh-cli I've read and agree with the Debian Python Policy. Thanks ~nikos
Re: issues installing psutil with pip in virtual environment
> I am running into an issue installing psutil: pip3 install psutil, in a > virtual environment. I have upgraded my pip and setuptools with no > avail. I am getting this error: https://pastebin.com/2Xb7UN9g psutil is not pure python, and contains some extensions that need to be compiled, so your system needs to have a compiler, gcc, installed; since it's not you get "unable to execute 'x86_64-linux-gnu-gcc': No such file or directory" > Some have suggested installing the python3-dev package. Saying that I > require "header" files (don't know what those are). So this means > installing that package and creating a new venv, where those files are > available. Is there a way to make this install work without installing > that package? Is that package really necessary? Does this mean my you will necessarily need to install python3-dev > virtual environments are somehow subject to what libraries are > available in my system python installation? yes, in a similar way as they are dependent on the system interpreter to create and run the venv > Is there some pip > installabel package that provides these files? some packages on PyPI provide binary releases, but psutil looks like it doesnt for linux, so you need to compile it. alternatively you can install python3-psutil on your host and then "virtualenv --system-site-packages" to use the system-available modules. Regards, -- Sandro "morph" Tosi My website: http://sandrotosi.me/ Me at Debian: http://wiki.debian.org/SandroTosi Twitter: https://twitter.com/sandrotosi
Re: issues installing psutil with pip in virtual environment
On April 26, 2020 4:06:00 PM UTC, Anil F Duggirala wrote: >hello, >I am running into an issue installing psutil: pip3 install psutil, in a >virtual environment. I have upgraded my pip and setuptools with no >avail. I am getting this error: https://pastebin.com/2Xb7UN9g >Some have suggested installing the python3-dev package. Saying that I >require "header" files (don't know what those are). So this means >installing that package and creating a new venv, where those files are >available. Is there a way to make this install work without installing >that package? Is that package really necessary? Does this mean my >virtual environments are somehow subject to what libraries are >available in my system python installation? Is there some pip >installabel package that provides these files? >thank you, No. No. Yes. Yes. No. Pip doesn't provide the python interpreter. The solution is in the traceback you posted: ("sudo apt-get install gcc python%s-dev" % py3) File "/tmp/pip-install-b88905i2/psutil/setup.py", line 116, in missdeps s = hilite("C compiler or Python headers are not installed ", ok=False) So install gcc and python3-dev and try again. Scott K
issues installing psutil with pip in virtual environment
hello, I am running into an issue installing psutil: pip3 install psutil, in a virtual environment. I have upgraded my pip and setuptools with no avail. I am getting this error: https://pastebin.com/2Xb7UN9g Some have suggested installing the python3-dev package. Saying that I require "header" files (don't know what those are). So this means installing that package and creating a new venv, where those files are available. Is there a way to make this install work without installing that package? Is that package really necessary? Does this mean my virtual environments are somehow subject to what libraries are available in my system python installation? Is there some pip installabel package that provides these files? thank you,
Re: best practice when installing python packages
> > For cases like this, I think the best practice is to work inside a > > virtualenv > > where you can upgrade pip and install whatever you need via pip > > with > > no impact > > on either your user or system python. > > I will do this then. > Actually this is exactly what is recommended here: https://stackoverflow.com/questions/59558343/cant-install-pyqt5-on-raspberry-pi However a different post suggests there is a bug in the pyqt5 pyproject.toml. https://stackoverflow.com/questions/59462014/cant-install-pyqt5-using-pip-on-raspberry-pi I just wonder why upgrading pip "fixes" this bug. thanks again,
Re: best practice when installing python packages
On Sat, 2020-04-25 at 13:55 -0400, Scott Kitterman wrote: > On Debian pip/pip3 does a user install by default, so if you do an > 'upgrade' > of a system installed module, it should have no system wide effect, > only for > the current user. Thank you for that piece of info. I was really wondering why all pip installed packages were --user installed. But does this also apply to upgrading pip itself? So if I upgrade pip I would necessarily end up with two different versions of pip? In that case what determines which will be the "default" pip? And will this possibly create issues? Sorry, I am a newbie. > > The Buster (Debian 10) version of PyQt5 does not install the Python > packaging > related metadata, so it not being listed by pip3 is not a surprise > (for the > next release it is provided). Well. Basically my problem is that, with the pip3 version supplied by Debian, it is not possible to install pyqt5 without an error. One apparently needs to upgrade pip (however, this appears to be a bug in the pyqt5 package). > For cases like this, I think the best practice is to work inside a > virtualenv > where you can upgrade pip and install whatever you need via pip with > no impact > on either your user or system python. I will do this then. Thank you very much Scott.