Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: issues installing psutil with pip in virtual environment Date: Sun, 26 Apr 2020 18:40:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org,Anil F Duggirala X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Apr 26 16:34:06 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 Dkim-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903e; t=1587918828; h=date : in-reply-to : references : mime-version : content-type : content-transfer-encoding : subject : to : from : message-id : from; bh=JLpaGwQH9NIk0XAtJRhyHC+gwthqFUjvy/FxwMQ53hE=; b=qU+P7hAJnGCEXpBw6VqqpUv8eIwXAKdmP/iUg0Mr1LXOaasJyJgG/gJIgfK7lSpc0TVdc uQEUD3jfxxvM72MBA== Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903r; t=1587918828; h=date : in-reply-to : references : mime-version : content-type : content-transfer-encoding : subject : to : from : message-id : from; bh=JLpaGwQH9NIk0XAtJRhyHC+gwthqFUjvy/FxwMQ53hE=; b=aAkV5WbBvvhvlANPOICbXmL8bzSwQNO9MRPFg24CbYbpt4+slPz3PK5BPZa7Bpl5m2tLN KQHi4rphjI9iTxUXJ9ha8Ho5G3sGOyRrR++2I0jOqTgjeEFg70mJQdy7UAw6LrVxisoTHVH gM4Vr/dCe5gT3ABBjvAFstlwvcpDofbMg8zzVI1KaKb8au9Id/baaxYKiu5cErN+0eExe1/ sBzI+kGbnyOKqnSg+4OY3ol0hyRWlBeSwwwPO214kObo4Lq3KF4n6A0+bSydaquri/7rqPf nUsdmOE8WP394eB3vcunlY87KvUItEHJj7RdHdwq26MdnwpLxztw2/Udcz8A== MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/18214 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/8B891BCF-DB85-49C0-9881-9E52FCFA07EC@kitterman.com Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 26 Apr 2020 16:33:45 +0000 X-Original-Message-ID: <8B891BCF-DB85-49C0-9881-9E52FCFA07EC@kitterman.com> X-Original-References: <1f5f91b2f030c2e939cef48b03b5991cdb060532.camel@fastmail.fm> Xref: csiph.com linux.debian.maint.python:12531 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=2E I have upgraded my pip and setuptools with no >avail=2E I am getting this error: https://pastebin=2Ecom/2Xb7UN9g >Some have suggested installing the python3-dev package=2E Saying that I >require "header" files (don't know what those are)=2E So this means >installing that package and creating a new venv, where those files are >available=2E 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=2E No=2E Yes=2E Yes=2E No=2E Pip doesn't provide the python interpreter=2E The solution is in the trac= eback you posted: ("sudo apt-get install gcc python%s-dev" % py3) File "/tmp/pip-install-b88905i2/psutil/setup=2Epy", line 116, in mis= sdeps s =3D hilite("C compiler or Python headers are not installed ", ok= =3DFalse) So install gcc and python3-dev and try again=2E Scott K