Python not showing correct version

Barry Scott barry at barrys-emacs.org
Fri Mar 31 04:48:55 EDT 2023



> On 31 Mar 2023, at 09:33, Sumeet Firodia <ssfirodia at 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 at barrys-emacs.org <mailto:barry at barrys-emacs.org>> wrote:
>> 
>> 
>>> On 30 Mar 2023, at 15:17, Sumeet Firodia <ssfirodia at gmail.com <mailto:ssfirodia at 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



More information about the Python-list mailing list