Reputation: 1
o/
I can't install Psutil package using :
pip install psutil
I get the error message : Microsoft Visual C++ 14.0 or greater is required Failed building wheel for psutil Could not build wheels for psutil, which is required to install pyproject .toml-based projects
I tried pretty much everything I found on other threads for the past 2 hours.
I uninstalled all older visual c++ versions and reinstalled the latest one (C++ 2015-2022) Tried using older pip versions, tried --upgraded and ---v commands, and so on and so on, nothing works.
Any hints :) ?
Upvotes: 0
Views: 4880
Reputation: 1956
fix on windows:
by installing Microsoft Build Tools for Visual Studio.
Select: Workloads → Desktop development with C++.
Then for Individual Components, select only:
The build tools allow using MSVC “cl.exe” C / C++ compiler from the command line.
So pip install psutil
is successfuly installed after that.
Upvotes: 1