3

I wanted to install py-spy on my Windows 10 (64-bit) machine but I always seem to end up with the following errors:

F:\downloads>python --version
Python 3.8.3

F:\downloads>python -m pip install py-spy
ERROR: Could not find a version that satisfies the requirement py-spy
ERROR: No matching distribution found for py-spy

This is quite strange, since the py-spy website and another post on this forum said that using pip was correct. Since the pip method didn't work, I decided to try to install the package from the pre-built wheel available on the py-spy website. However, i keep getting the following error message:

F:\downloads>pip install py_spy-0.3.3-py2.py3-none-win_amd64.whl
ERROR: py_spy-0.3.3-py2.py3-none-win_amd64.whl is not a supported wheel on this platform.

Is there something that I am missing?

Thanks in advance.

Note: I tried to install py-spy using both cmd.exe and powershell.exe as a regular user and as an administrator with no luck.

python_noob
  • 107
  • 7

1 Answers1

2

If you running in a 32bit OS then it is not supported; check paragraph: Does py-spy support 32-bit Windows? Integrate with PyPy? Work with USC2 versions of Python2?

Not yet =).

If there are features you’d like to see in py-spy either thumb up the appropiate issue or create a new one that describes what functionality is missing.

EDIT

Also try to download Python in 64 Bit!

To check which version of Python you are running (32 bit or 64 bit) run Python in any shell, the first line should say:

Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)] 

Where [MSC v.1927 64 bit (AMD64)] means 64-bit Python.

David Buck
  • 3,752
  • 35
  • 31
  • 35
Federico Baù
  • 6,013
  • 5
  • 30
  • 38
  • That is the weird thing about it. I am using Windows Professional 64-bit. Thanks for the answer, though. – python_noob Dec 28 '20 at 15:17
  • 2
    One thing even if you have a 64 bit machine you can still install by mistake the 32 bit Pyhon. I mean I did it in the past, and I actually have 2 version installed. – Federico Baù Dec 28 '20 at 15:20
  • Ok, I will try it and let you know. Thanks! – python_noob Dec 28 '20 at 15:28
  • if you have Python 32 bit installed and note 64 (hence here the problem) make sure to use the correct versoin of python on the project envirorment or update the windows Path all in once, to test it then run python in a terminal as explain in the answer. As remineder [How to add to the PYTHONPATH in Windows, so it finds my modules/packages?](https://stackoverflow.com/a/4855685/13903942) Then let us know – Federico Baù Dec 28 '20 at 15:31
  • 1
    Thanks! I downloaded the 64-bit version of python and now I can install py-spy. Have a good one! – python_noob Dec 28 '20 at 20:03