Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Experience has proved that some people indeed know everything." -- Russell Baker


devel / comp.lang.python / Re: Python not showing correct version

SubjectAuthor
o Re: Python not showing correct versionSumeet Firodia

1
Re: Python not showing correct version

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ssfiro...@gmail.com (Sumeet Firodia)
Newsgroups: comp.lang.python
Subject: Re: Python not showing correct version
Date: Fri, 31 Mar 2023 17:57:11 +0530
Lines: 116
Message-ID: <mailman.2471.1680265643.20444.python-list@python.org>
References: <CANvxP8M8nPBCm2cehEG1UahP=SoOHiZYpazY_pmXhtUWsOYS6g@mail.gmail.com>
<CANvxP8M89NK+QY2YodnjZmojUMFOnwVSVT27mLgKh-jXgv4AMw@mail.gmail.com>
<D26A4D1C-EF05-4C9D-9E52-8DD3148FCA4F@barrys-emacs.org>
<CANvxP8PNFGFx7x7nSH-DyrCD+1F7=fH-aGjMPm1uPWnqFY7J4g@mail.gmail.com>
<CF613B70-7017-4CF7-8B37-3F71E1CFBB75@barrys-emacs.org>
<CANvxP8OLD41z=w3GHS3OkpWEE5N5tPaMBNnSbnZXCcYDpGdYHQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de Papz+p5X0PvJKWnBYcfXZQmC8b9BgiVljz7zNfqMJvgA==
Return-Path: <ssfirodia@gmail.com>
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=gmail.com header.i=@gmail.com header.b=AJfTBo6Y;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'this:': 0.03; 'pip': 0.04;
'3.8': 0.05; 'issue.': 0.05; '&gt;&gt;&gt;': 0.07; '2023': 0.07;
'mar': 0.07; 'matches': 0.07; 'modules': 0.07; '(python': 0.09;
'<>,': 0.09; 'cc:addr:python-list': 0.09; 'example.': 0.09;
'subject:not': 0.09; 'subject:version': 0.09; 'uninstall': 0.09;
'subject:Python': 0.12; '&gt;': 0.14; 'cc:no real name:2**0':
0.14; 'url:mailman': 0.15; '3.10': 0.16; '>>>>': 0.16; 'barry':
0.16; 'installed.': 0.16; 'installed:': 0.16; 'stuck': 0.16;
'subject:showing': 0.16; 'use:': 0.16; 'warning:': 0.16; 'wrote:':
0.16; 'python': 0.16; 'says': 0.17; 'installing': 0.19; 'thu,':
0.19; 'cc:addr:python.org': 0.20; 'issue': 0.21; 'fri,': 0.22;
'skip:& 40': 0.22; 'version': 0.23; 'install': 0.23; 'command':
0.23; 'installed': 0.23; 'url-ip:188.166.95.178/32': 0.25; 'url-
ip:188.166.95/24': 0.25; 'url:listinfo': 0.25; 'cc:2**0': 0.25;
'url-ip:188.166/16': 0.25; '>>>': 0.28; 'output': 0.28; 'url-
ip:188/8': 0.31; 'program': 0.31; 'message-id:@mail.gmail.com':
0.32; 'but': 0.32; 'windows': 0.34; 'able': 0.34; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34; 'running': 0.34;
'trying': 0.35; 'from:addr:gmail.com': 0.35; 'received:209.85':
0.37; 'this.': 0.37; 'thanks': 0.38; 'received:209': 0.39;
'received:209.85.208': 0.39; 'list': 0.39; 'use': 0.39; 'prompt':
0.39; 'program.': 0.40; 'want': 0.40; 'try': 0.40; 'search': 0.61;
'method': 0.61; 'python.org': 0.62; 'here': 0.62; 'email
addr:gmail.com': 0.63; 'everything': 0.63; 'dont': 0.64;
'requirement': 0.64; 'upgrade': 0.64; 'wish': 0.66; 'let': 0.66;
'shows': 0.67; 'per': 0.68; 'refers': 0.69; 'below': 0.69; 'skip:c
70': 0.75; 'scott': 0.84; 'steps.': 0.84; 'proceed': 0.88
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112; t=1680265642;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=xkxoKUJcp38nmOT0A3rz1vu9o3Ov/gHeYtG+KuRxNWg=;
b=AJfTBo6YpUX0PfSziuIW5dchAhvAS6Ta+4os0NvRUe/20DyOjLqtG4jwKLF5gwdJrz
bhFx5vxIZRuu+n6f36Ztt24MITLCgmUJXOzAKykqfG+oBKxxrnMcK55crIe/p7Jqt8w2
7nTeeXyFAUh0bDDnwinZ1HmuLaJo/0XC4vR5emLFHumEq/fT6yHJVXruH/srVVKIe8/C
agG3aO0A33GQKWzZoPA2Q0MRz9PBkFf8f3WGRhBTDdre0Uz3SPDEs1WhFZHyQNd5/pN9
CM4Xr4CSkelT/uokfE69xy+H7k03/eyFd9P49THKZAwkkSnH30SY8RUWKo4Pxs+IbmxB
ZbJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112; t=1680265642;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=xkxoKUJcp38nmOT0A3rz1vu9o3Ov/gHeYtG+KuRxNWg=;
b=YNKYcWcDUuWGJ9GN62EykEkIer8aa/JUuek8+aaHhjzEuCrJJks8uk5mQDFSLBPHGO
Vim6wIktoiEs5tfs0zjbg9lYRdS63JJzGVj7kE0t5FO6DkL0c83eBS74NkFHgo8grFvs
ruXhlayNZXx+IrnIcKedKJkaxFheifnLr736L4BCrDEMu4G7cVuiPUtHq5zUK4Krf9C/
IVdvVz+A6+0MLJP52hogG1M53ntD/0NJ5IkehEwt2RtPzx2hQXlE0ZtPJ1r5EBq8V1sh
2u2REEZO6xFSCoDyjkl+ejYj61U8Qs9UJ6SJ7kNuC98kKMkMGIzVTumqyyqiIpfVker/
RXWg==
X-Gm-Message-State: AAQBX9fvpXBtjS5UoFbIeKHkUyV7oaFpuEPDxyDI9r1QY7rP0dYv3FF2
n1mrSw4NW8PqZ14eDAeDP27iycAqvfLHt2U9GlhkrzyW8CpbwA==
X-Google-Smtp-Source: AKy350ZhT2TXTiDZxEF0G/in48qal+cK8gnks6LK5g79SSK1mxKIG4UMVmVFOP4YWVzKHUeq1YA+GXa5EeTxUqp/zn8=
X-Received: by 2002:a50:9fef:0:b0:4fc:2096:b15c with SMTP id
c102-20020a509fef000000b004fc2096b15cmr13707577edf.1.1680265641964; Fri, 31
Mar 2023 05:27:21 -0700 (PDT)
In-Reply-To: <CF613B70-7017-4CF7-8B37-3F71E1CFBB75@barrys-emacs.org>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
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: <CANvxP8OLD41z=w3GHS3OkpWEE5N5tPaMBNnSbnZXCcYDpGdYHQ@mail.gmail.com>
X-Mailman-Original-References: <CANvxP8M8nPBCm2cehEG1UahP=SoOHiZYpazY_pmXhtUWsOYS6g@mail.gmail.com>
<CANvxP8M89NK+QY2YodnjZmojUMFOnwVSVT27mLgKh-jXgv4AMw@mail.gmail.com>
<D26A4D1C-EF05-4C9D-9E52-8DD3148FCA4F@barrys-emacs.org>
<CANvxP8PNFGFx7x7nSH-DyrCD+1F7=fH-aGjMPm1uPWnqFY7J4g@mail.gmail.com>
<CF613B70-7017-4CF7-8B37-3F71E1CFBB75@barrys-emacs.org>
 by: Sumeet Firodia - Fri, 31 Mar 2023 12:27 UTC

Hi Barry,

This is getting more complicated.
As per the command you shared, below is the output

C:\Users\admin>py -3.8 -m pip --version
pip 19.2.3 from
C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\pip
(python 3.8)

For pip --version below is the output

C:\Users\admin>pip --version
pip 23.0.1 from
C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pip
(python 3.10)

Now if I want to upgrade the pip version it says requirement already met

C:\Users\admin>python -m pip install --upgrade pip
Requirement already satisfied: pip in
c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages
(23.0.1)

Please let me know how can I cleanup everything so that I dont see python
3.10.10 and can work with 3.8

Thanks
Sumeet

On Fri, 31 Mar 2023 at 14:21, Barry Scott <barry@barrys-emacs.org> wrote:

>
>
> > On 31 Mar 2023, at 09:33, Sumeet Firodia <ssfirodia@gmail.com> wrote:
> >
> > Thanks Barry.
> >
> > One more thing is that pip --version also refers to python 3.10
> >
> > C:\Users\admin>pip --version
> > pip 23.0.1 from
> C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pip
> (python 3.10)
>
> Use this command to ensure that pip matches the python you wish to use:
>
> py -3.8 -m pip --version
>
> Barry
>
> >
> > The issue here is I am trying to use snowpark for which I need python
> 3.8 but because of this I am not able to proceed with next steps.
> >
> > Thanks
> > Sumeet
> >
> > On Thu, 30 Mar 2023 at 22:45, Barry Scott <barry@barrys-emacs.org
> <mailto:barry@barrys-emacs.org>> wrote:
> >>
> >>
> >>> On 30 Mar 2023, at 15:17, Sumeet Firodia <ssfirodia@gmail.com <mailto:
> ssfirodia@gmail.com>> wrote:
> >>>
> >>>>
> >>>> Hi Team,
> >>>>
> >>>> I have installed Python 3.8 for Snowpark but when I check the version
> in
> >>>> command prompt it shows me Python 3.10.10.
> >>>>
> >>>> C:\Users\admin>python --version
> >>>> Python 3.10.10
> >>
> >> Try this:
> >>
> >> py -3.8
> >>
> >> And this to list all version of python installed:
> >>
> >> py -0
> >>
> >>
> >>>>
> >>>> Also when I try to uninstall 3.10 it says no such version is
> installed.
> >>>>
> >>>> C:\Users\admin>pip uninstall python 3.10.10
> >>>> WARNING: Skipping python as it is not installed.
> >>>> WARNING: Skipping 3.10.10 as it is not installed.
> >>
> >> PIP is for installing python modules not the python program.
> >> The python program is installed by running the .exe that you get from
> python.org <http://python.org/>, for example.
> >> Use the standard Windows method to uninstall a program.
> >> Search the web for "windows uninstall software" if you are not sure how
> to do this.
> >>
> >> Barry
> >>
> >>>>
> >>>> Can you please help me here as my snowpark assignment is stuck
> because of
> >>>> this issue.
> >>>>
> >>>> Thanks
> >>>> Sumeet
> >>>>
> >>>>
> >>> --
> >>> https://mail.python.org/mailman/listinfo/python-list
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor