LLNL / LEAP

comprehensive library of 3D transmission Computed Tomography (CT) algorithms with Python and C++ APIs, a PyQt GUI, and fully integrated with PyTorch
https://leapct.readthedocs.io
MIT License
120 stars 12 forks source link

Solution for '.egg-info directory not found' error during PyTorch Installation #106

Open ProjX0 opened 2 months ago

ProjX0 commented 2 months ago

Hello, Kyle

Processing c:\users\user\desktop\recon\pytorch\leap-1.22 Preparing metadata (setup.py) ... done ERROR: No .egg-info directory found in C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-_1fo_1fy

This error was resolved by adding -G "Visual Studio 16 2019" after cmake .. -DDEV_MODE=1 in etc\win_build_agn.bat.

I hope this helps others encountering the same installation issue.

kylechampley commented 2 months ago

@ProjX0, thanks for your post. I definitely need help improving the build process for LEAP!

Older versions of LEAP did have the -G "Visual Studio 16 2019" in the Windows batch file, but I removed it. Actually, it is still there in win_build.bat. I removed it because this will only work with VS 2019 and I wanted users to build with other versions of VS. The file that is currently used in the pip install is win_build_agn.bat, the "agn" stands for agnostic. From my understanding, the only thing the -G argument does is generate the VS solutions file (*.sln) so that people can rebuild their changes with VS.

Maybe there is some truth to your suggestion, but if I do this, it will force users to use VSD 2019. I'd prefer a solution that works for multiple versions of VS.