From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SFb7CwivLmCjUgAA0tVLHw (envelope-from ) for ; Thu, 18 Feb 2021 18:16:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4ILCBwivLmB5FgAAbx9fmQ (envelope-from ) for ; Thu, 18 Feb 2021 18:16:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5E490332B2 for ; Thu, 18 Feb 2021 19:16:39 +0100 (CET) Received: from localhost ([::1]:57306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCnqt-0007Ad-G3 for larch@yhetil.org; Thu, 18 Feb 2021 13:16:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCnkX-0003BQ-Gc for help-guix@gnu.org; Thu, 18 Feb 2021 13:10:01 -0500 Received: from knopi.disroot.org ([178.21.23.139]:60968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCnkU-0002GS-RO for help-guix@gnu.org; Thu, 18 Feb 2021 13:10:01 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9B78450E55; Thu, 18 Feb 2021 19:09:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4OaoJ9ax2KHV; Thu, 18 Feb 2021 19:09:55 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1613671794; bh=r68eQ2/Bj+7gC0uU8Q/rxjG6CN19XtljrxWK+AilBcM=; h=Date:From:Subject:To:In-Reply-To:References; b=iENHNDNloSUQ4wCO7us+a8VFJGv1Z7B0+V6HuQJNHDKIIJ1vaUiUJs8tU+Fz58uKm PYevogCD0N1K4yF4brnr8I5ftspzVj1w8zPfSeKfYeGSewKxXoXGHkzR5/7lCKcaI1 QHyu7AYBUCOuGBY/m4HdfwRDxfQ8Y4Nk1XK/EHAydhKEopvgbOSR9Oogrx93eNPJQj ib7DK0cDlroucCcj3qi7NaRwcI9aiuBDR+8Q7CPhKkK4axDRjcrNEIxR0G6J/n0AwS iGsg08XTNIKm076fRv77PGIPSJb/exnuWtrYYAgyxWQ6JkuVTd8pW0m8wCMHYfUoZM PEJr1KHgjDLDw== Date: Thu, 18 Feb 2021 18:09:52 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: znavko@disroot.org Message-ID: <1067ab1147ffd48fc9e294f7660fea03@disroot.org> Subject: Re: How to use pip3 libs abcent in guix repo? To: "Jelle Licht" , "help-guix" In-Reply-To: <86v9ap5qic.fsf@fsfe.org> References: <86v9ap5qic.fsf@fsfe.org> Received-SPF: pass client-ip=178.21.23.139; envelope-from=znavko@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=iENHNDNl; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 5E490332B2 X-Spam-Score: -0.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0favDHjxwAt0 Thank you for tricks!=0A=0A=0AFebruary 18, 2021 3:45 PM, "Jelle Licht" wrote:=0A=0A> Hey Znavko,=0A> =0A> znavko--- via writes:=0A> =0A>> Hello, developers and users!=0A>> I wish to= use python-binance, ta-lib, python-websocket-client, python-numpy as in = this video=0A>> https://youtu.be/GdlFhF6gjKo?t=3D713 (https://youtu.be/Gd= lFhF6gjKo?t=3D713)=0A>> Guix repository already has python-numpy, python-= websocket-client packages, but others abcent.=0A>> =0A>> How can I use py= thon libs downloading them from web without installation by guix pm?=0A>>= Is there proper way to setup python libraries in my system, where to pla= ce it and how to link it?=0A> =0A> As a python 'noob' who started serious= ly playing around with it about a=0A> week ago, I might save you some has= sle:=0A> =0A> It is really, really much easier to work with guix-managed = dependencies;=0A> check out the guix pypi importer to see how this can wo= rk.=0A> =0A> If you do not want do that, for whichever reason, I can reco= mmend using=0A> a virtualenv. Open a guix environment by issuing:=0A> =0A= > `guix environment --ad-hoc python-pip python-virtualenv python-numpy py= thon-websocket-client=0A> python'=0A> =0A> Note that it is important that= the "python" package comes last in this=0A> invocation!=0A> =0A> In the = spawned shell, run:=0A> =0A> --8<---------------cut here---------------st= art------------->8---=0A> virtualenv -p python3 my-amazing-venv=0A> sourc= e my-amazing-venv/bin/activate=0A> pip3 install python-binance=0A> --8<--= -------------cut here---------------end--------------->8---=0A> =0A> Afte= r that, but still in your `guix environment' + `source=0A> my-amazing-ven= v/bin/activate' shell, you should be able to verify that=0A> you can load= up binance:=0A> `python3 -m binance'=0A> =0A> It won't complain about no= t finding the binance module, so in this case,=0A> no output =3D good new= s.=0A> =0A> Because all of this is a kind of terrible user experience, it= might make=0A> sense to string all of this stuff together in a shell scr= ipt. Again, I'd=0A> like to state that simply getting all of the packages= you need packaged=0A> for guix (locally or in guix proper) makes all of = this complexity go away.=0A> =0A> HTH,=0A> - Jelle