Closed ea1442 closed 3 months ago
I got similar issue. I finally used psutil==6.0.0 and downloaded the wheel somewhere I dont remember since I wasn't able to build it. I think it was at this link : https://pypi.org/project/psutil/6.0.0/#files
How did you have PST proceed further with psutil==6.0.0 ? setup.py just interrupts when 5.6.6 is not detected.
I installed after modifying setup.py Looks like it worked for now. Hope this helps other people having the same issue.
Here is what I did in setup.py: Commented out lines 80 and 81 as follows:
#license="GNU GPL v3",
#keywords="systematic trading interactive brokers",
Changed line 94 from "psutil==5.6.6" to "psutil>=5.6.6"
Hello,
I am trying to install the latest version of pysystemtrade on Windows using a virtual environment set up with Anaconda. I remember running older versions of pysystemtrade without any issues (using Python 3.8.x). However, on Python 3.10.x, I am unable to install psutil version 5.6.6; only 5.6.7 or newer versions are available. When I try to use version 5.6.7 or newer, the pysystemtrade setup returns an error.
I have tried installing several different versions of Microsoft Visual C++ 14.0 or higher, but the result remains the same.
Here’s the error output:
**psutil/_psutil_windows.c(272): error C2094: label 'error' was undefined error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psutil Running setup.py clean for psutil Failed to build psutil ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects**
I have searched online about installing psutil 5.6.6 and found that it seems to be impossible for many users. It is often suggested to install version 5.6.7 instead (ref: https://github.com/EGA-archive/ega-download-client/pull/205).
How did you manage to run the latest version on Windows with Python 3.10.x or newer? What is the correct setup I should follow?
Thank you for the help.