Open HarshitGupta150 opened 2 years ago
Dont use my requirements. txt file. There is a command to get the file you can google it. Get this file for your project on your pc and use that.
On Tue, May 10, 2022, 11:12 AM HarshitGupta150 @.***> wrote:
Hello. can u help me out . I am getting error while running your flask app code. Actually , I am using Xgboost model for the car prediction and then using that model in pickle file. The error generates when I install the packages mentioned in requirements.txt file.
Error I am facing is too long so I am pasting some parts of it:
UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running dist_info running build_src build_src building py_modules sources creating build creating build\src.win-amd64-3.9 creating build\src.win-amd64-3.9\numpy creating build\src.win-amd64-3.9\numpy\distutils building library "npymath" sources error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.UserWarning: Unknown distribution option: 'define_macros'
— Reply to this email directly, view it on GitHub https://github.com/SurabhiSuresh22/Car-Price-Prediction/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBW5IFID6YVTX7MH3YFM2DVJHZN7ANCNFSM5VQMFFMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I did as u suggested but now on running the command flask run , I am getting this error:
Exception ignored in: <function Booster.del at 0x0000006B6C939C10> Traceback (most recent call last): File "Desktop\Flask Car App\env\lib\site-packages\xgboost\core.py", line 957, in del if self.handle is not None: AttributeError: 'Booster' object has no attribute 'handle'
Aborted!
Hello. can u help me out . I am getting error while running your flask app code. Actually , I am using Xgboost model for the car prediction and then using that model in pickle file. The error generates when I install the packages mentioned in requirements.txt file.
Error I am facing is too long so I am pasting some parts of it:
UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running dist_info running build_src build_src building py_modules sources creating build creating build\src.win-amd64-3.9 creating build\src.win-amd64-3.9\numpy creating build\src.win-amd64-3.9\numpy\distutils building library "npymath" sources error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.UserWarning: Unknown distribution option: 'define_macros'