Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

With all the fancy scientists in the world, why can't they just once build a nuclear balm?


devel / comp.lang.python / Re: Problem in using libraries

SubjectAuthor
o Re: Problem in using librariesThomas Passin

1
Re: Problem in using libraries

<mailman.2537.1680542762.20444.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=27211&group=comp.lang.python#27211

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Problem in using libraries
Date: Mon, 3 Apr 2023 13:25:48 -0400
Lines: 53
Message-ID: <mailman.2537.1680542762.20444.python-list@python.org>
References: <CAJz1ufO+W7mM3zfhOyksBu6EtRSYGskYyhgv0do1T6LEjnYBpQ@mail.gmail.com>
<1f02be62-1a33-72dc-e259-5c24be15801a@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de Mu1H6h2eG9AiJLa8BtSdVAad3wK9zfK1/XzZsIN+ZW3w==
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=fLeaBSX6;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'run.': 0.05;
'python.': 0.08; 'al.': 0.09; 'computing': 0.09; 'fundamental':
0.09; 'numpy': 0.09; 'pip.': 0.09; '"import': 0.16; '(without':
0.16; '--user': 0.16; 'bokeh,': 0.16; 'found:': 0.16; 'license:':
0.16; 'matplotlib,': 0.16; 'numba,': 0.16; 'numpy,': 0.16;
'numpy.': 0.16; 'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'scipy,': 0.16; 'seaborn,': 0.16;
'travis': 0.16; 'url:numpy': 0.16; 'warning:': 0.16; 'wrote:':
0.16; 'python': 0.16; "can't": 0.17; 'libraries': 0.19; 'pm,':
0.19; 'to:addr:python-list': 0.20; 'version': 0.23; 'install':
0.23; 'command': 0.23; 'installed': 0.23; 'subject:using': 0.23;
'run': 0.23; 'library': 0.26; 'etc': 0.28; 'version.': 0.28;
'goes': 0.28; 'error': 0.29; 'header:User-Agent:1': 0.30; 'url-
ip:188/8': 0.31; 'program': 0.31; 'think': 0.32; 'assume': 0.32;
'realize': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'said,': 0.32; "i'm":
0.33; 'able': 0.34; "didn't": 0.34; 'package': 0.34; 'header:In-
Reply-To:1': 0.34; 'trying': 0.35; 'those': 0.36; 'name:': 0.37;
'using': 0.37; 'way': 0.38; 'could': 0.38; 'use': 0.39; 'tell':
0.60; 'your': 0.64; 'plan': 0.64; 'well': 0.65;
'header:Received:6': 0.67; 'received:64': 0.67; 'obvious': 0.69;
'skip:c 70': 0.75; 'reply': 0.77; '*for': 0.84; 'bhardwaj': 0.84;
'car': 0.84
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1680542749; a=rsa-sha256;
cv=none;
b=IREBzR43UWAqKPJDTpI2BA2TNpRD8rT6xA7Xks3yy1vii9YffV5D2MIunIAh/B8xxiAadr
jjMPzj/589zG5dFF21z0eK5nvigd26vti0IOCuKMMbMTjxdPX58rqvdBFg6L7WjxY/dO8E
9wwwb8DxYu4ld1qXVBKIM79euaXJq7oklu6Vs7n2ppDBlstuCMQ0IXZztpEI4Xom6EY4hg
8HOjklSGS3vG6S3v4u605NHodM6AGzJVuN9Hc+Pus79LJgi4+Y9dXGjI666hFEdJhjO5zZ
irXx6y4fmtPbZT/+UuTlNp7bOErOYoAIJHwtwbBuZl5YruQGbylV66HfA00new==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1680542749;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=0ES5zaQ1hxvgiJLtQzqYpkQxwQQQGx8tHOki2cM6vsU=;
b=J5cVaCr7uLBUR7rPvr3Fr8UARitoMkIZvCsE8cSMvgTQtTLtihuaZz78cfVij/3UHdIJlJ
uCJ7QolzMMLCnJHMqQBbubEFl78+UDlpOD05ct3q501koy6HK8ZkuJ4DnuyskhpXEXPhsb
kRFfWgQW1zCxc2detak6+kFxsrwndbSm9QRi1S9nfm2f65LxWw9NYT38inrX+FoI6LrU3X
qu7+q7wKGrQi6XMscYHWY4G0LaxuEy/nneByoALWp7i0g+0iJVXkpbw0Ftm6Tz1nTVaZrf
JwSNftRE91EyAgohAx1IJ/MQHSIjcd0vsqYbomb1b+giXGmJIYpXOHctTNd5xw==
ARC-Authentication-Results: i=1; rspamd-786cb55f77-5wm9m;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Unite-Madly: 47d73cf80ff1dd96_1680542750017_3185937929
X-MC-Loop-Signature: 1680542750017:3225157097
X-MC-Ingress-Time: 1680542750017
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1680542749;
bh=0ES5zaQ1hxvgiJLtQzqYpkQxwQQQGx8tHOki2cM6vsU=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=fLeaBSX6b2uExmVS3hGE4B6gL0U4EC3j7jZmVwz5zrmSN39hF17nvtFcEFXDqob/o
zDbkaukwiw5qEU58rnkIiPDyP8x0XvXJpRXn1KSKD2qhT3BW8dBD8P6gKa18KOY+AU
J8uZesPTwu/NViqqfoBnWEvKMOGNO213XOcUWK0oK5h7I9L4YRaj+f03IrI5aCVxfA
5O0O2xdncKgCU9SiXAxEg+sLjiqaP6Y52yKNL8dKg2z9Sf3Pqkta26qecMMWgeXcNf
46/wH37Uwm1UZ4OnFwZijQ+/VNSbqaSWAu3hj+KJYngM+0HSPKwNGe0hLhPF6Lo0Px
DXzq/usVI+Lzw==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: en-US
In-Reply-To: <CAJz1ufO+W7mM3zfhOyksBu6EtRSYGskYyhgv0do1T6LEjnYBpQ@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <1f02be62-1a33-72dc-e259-5c24be15801a@tompassin.net>
X-Mailman-Original-References: <CAJz1ufO+W7mM3zfhOyksBu6EtRSYGskYyhgv0do1T6LEjnYBpQ@mail.gmail.com>
 by: Thomas Passin - Mon, 3 Apr 2023 17:25 UTC

On 4/3/2023 12:43 PM, Pranav Bhardwaj wrote:
> Why can't I able to use python libraries such as numpy, nudenet, playsound,
> pandas, etc in my python 3.11.2. It always through the error "import
> 'numpy' or any other libraries could not be resolved".

You need to realize that no one can help you without some specific
information. You have not told us anything. You might as well have
said, if your car didn't start, "My car won't run. Why can't I start it?.

Let's start with the most obvious thing - are those libraries installed?
If not, install them. If you think they have been installed, then
tell us how you installed them and how you know they have been
successfully installed *for the version of python* you are trying to use.

Let's take numpy. The standard way to install it is using pip. You have
to make sure that you run the pip program that goes with the version of
Python you plan to use. I'm going to assume that if you type "py"
(without quotes), you will get that version. If not, use the command
you have been using to run Python 3.11.

On my system:

C:\Users\tom>py -V
Python 3.10.9

C:\Users\tom>py -m pip show numpy
Name: numpy
Version: 1.23.4
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email:
License: BSD
Location:
c:\users\tom\appdata\local\programs\python\python310\lib\site-packages
Requires:
Required-by: bokeh, causal-curve, cftime, contourpy, csaps, dcor, emd,
frechetdist, imageio, localreg, matplotlib, mizani, netCDF4, numba,
pandas, patsy, plotnine, pwlf, pyDOE, pygam, PyWavelets, scaleogram,
scikit-image, scikit-learn, scipy, seaborn, sparse, statsforecast,
statsmodels, tifffile

If a library is not installed (I'll use a non-existent library name) -

C:\Users\tom>py -m pip show numpyx
WARNING: Package(s) not found: numpyx

To install numpy with pip *for that version of Python* -

py -m pip install numpy (or a form you may see sometimes: py -m
install --user numpy)

Please reply with this information.


devel / comp.lang.python / Re: Problem in using libraries

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor