Sharris222 / NFL_Prediction

NFL win predictor based on implementation in following article:https://www.activestate.com/blog/how-to-predict-nfl-winners-with-python/
1 stars 0 forks source link

Unable to import dependencies: numpy #1

Open masondavis44 opened 1 year ago

masondavis44 commented 1 year ago

I have installed numpy as well as panda and am running on their latest versions. Using python 3.10. When I try to run predict.py I get the error

Original error was: No module named 'numpy.core._multiarray_umath' File "C:\Python3\Python\Python310\NFL_Prediction-main\pandas__init__.py", line 16, in raise ImportError( File "C:\Python3\Python\Python310\NFL_Prediction-main\sportsreference\nfl\boxscore.py", line 1, in import pandas as pd File "C:\Python3\Python\Python310\NFL_Prediction-main\Predict.py", line 1, in from sportsreference.nfl.boxscore import Boxscores, Boxscore

masondavis44 commented 1 year ago

Just tried that and i got:

no such option: -u

On Thu, Oct 20, 2022 at 11:04 PM Sharris222 @.***> wrote:

I have installed numpy as well as panda and am running on their latest versions. Using python 3.10. When I try to run predict.py I get the error

Original error was: No module named 'numpy.core.multiarray_umath' File "C:\Python3\Python\Python310\NFL_Prediction-main\pandas__init_.py", line 16, in raise ImportError( File "C:\Python3\Python\Python310\NFL_Prediction-main\sportsreference\nfl\boxscore.py", line 1, in import pandas as pd File "C:\Python3\Python\Python310\NFL_Prediction-main\Predict.py", line 1, in from sportsreference.nfl.boxscore import Boxscores, Boxscore

try the following command: pip install numpy —upgrade

— Reply to this email directly, view it on GitHub https://github.com/Sharris222/NFL_Prediction/issues/1#issuecomment-1286397273, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3XQD5D3DDFNKL34TRALGR3WEIB4TANCNFSM6AAAAAARKXJWOA . You are receiving this because you authored the thread.Message ID: @.***>

masondavis44 commented 1 year ago

git

masondavis44 commented 1 year ago
I have now fixed the import problems but am getting a parse error as shown in the image. I am very new to python so any suggestions would be appreciated. Very intrigued to see the output of this code. Thanks Sent from Mail for Windows From: Sharris222Sent: Thursday, October 20, 2022 11:04 PMTo: Sharris222/NFL_PredictionCc: masondavis44; AuthorSubject: Re: [Sharris222/NFL_Prediction] Unable to import dependencies: numpy (Issue #1) I have installed numpy as well as panda and am running on their latest versions. Using python 3.10. When I try to run predict.py I get the errorOriginal error was: No module named 'numpy.core.multiarray_umath' File "C:\Python3\Python\Python310\NFL_Prediction-main\pandas__init_.py", line 16, in raise ImportError( File "C:\Python3\Python\Python310\NFL_Prediction-main\sportsreference\nfl\boxscore.py", line 1, in import pandas as pd File "C:\Python3\Python\Python310\NFL_Prediction-main\Predict.py", line 1, in from sportsreference.nfl.boxscore import Boxscores, Boxscoretry the following command:pip install numpy —upgrade—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>