On 3/31/2023 8:27 AM, Sumeet Firodia wrote:
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 <ba...@barrys-emacs.org> wrote:



On 31 Mar 2023, at 09:33, Sumeet Firodia <ssfiro...@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 <ba...@barrys-emacs.org
<mailto:ba...@barrys-emacs.org>> wrote:


On 30 Mar 2023, at 15:17, Sumeet Firodia <ssfiro...@gmail.com <mailto:
ssfiro...@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.

We have been telling you to type "py -3.8" instead of typing "python". We have been telling you to type "py -3.8 -m pip" instead of "python -m pip". Now you complain that you did something else and got a wrong result.

If you want to upgrade pip for Python 3.8, then follow the pattern and type "py -3.8 -m pip install --upgrade pip". Everywhere you would have typed "python" type "py -3.8" instead.

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to