Error:
(base) C:\Windows\System32>pip install –upgrade numpy
WARNING: Ignoring invalid distribution -andas (c:\users\foxku\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -umpy (c:\users\foxku\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -andas (c:\users\foxku\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -umpy (c:\users\foxku\appdata\roaming\python\python310\site-packages)
Requirement already satisfied: numpy in c:\programdata\anaconda3\lib\site-packages (2.2.6)
WARNING: Ignoring invalid distribution -andas (c:\users\foxku\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -umpy (c:\users\foxku\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -andas (c:\users\foxku\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -umpy (c:\users\foxku\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -andas (c:\users\foxku\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -umpy (c:\users\foxku\appdata\roaming\python\python310\site-packages)
This output confirms the issue: you have “zombie” folders left over from a failed uninstall or upgrade.
The warnings Ignoring invalid distribution -andas and -umpy mean that inside your site-packages folder, there are temporary directories (likely named ~andas or similar) that pip failed to delete during a previous operation. These corrupted folders are confusing Python and preventing a clean installation.
Here is how to fix this manually.
1. Delete the “Zombie” Folders
You need to go into the file system and delete these corrupted folders yourself, as pip cannot remove them.
- Open your File Explorer.
- Navigate to this exact path (you can paste this into the address bar):
C:\Users\foxku\AppData\Roaming\Python\Python310\site-packages- Look for folders that start with a tilde (
~) or a hyphen (-). They will likely look like:~andas~umpy~umpy.libs- ~umpy-2.2.6.dist -info
~andas-<version>.dist-info
- Delete these folders.
- While you are there, if you see a standard
pandasfolder, delete that too just to be safe (so we can do a fresh install).
Reinstall Pandas
pip install pandas