sashahafner / pystupid

Some notes on Python syntax and more
GNU General Public License v3.0
2 stars 0 forks source link

Module installation fun on Windows #5

Open sashahafner opened 1 year ago

sashahafner commented 1 year ago

Here is how I just installed some modules on Windows:

C:\Users\sasha>C:\Users\sasha\AppData\Local\Programs\Python\Python311\python.exe -m pip install scipy

Seems to work. I've added that path to PATH and restarted but still need the whole thing. Who knows.

But here is what I saw for shutil:

C:\Users\sasha>C:\Users\sasha\AppData\Local\Programs\Python\Python311\python.exe -m pip install shutil
ERROR: Could not find a version that satisfies the requirement shutil (from versions: none)
ERROR: No matching distribution found for shutil

Seems it is because shutil is built in. Duh. But a frikkin useful error message might be nice. Or the ability to install modules from within Python?!

Nice list of possible problems here:

image

From here: https://bobbyhadz.com/blog/python-could-not-find-a-version-that-satisfies-the-requirement#could-not-find-a-version-that-satisfies-the-requirement-x

Note that on Ubuntu I just use pip3..., simple.