Feb-24-2021, 07:32 PM
(This post was last modified: Feb-24-2021, 07:37 PM by Led_Zeppelin.)
The following code produces the following error;
I am also using python 3.8.2.
I do not know how to get rid of this error?
Thanks in adavnce.
Respectfully,
LZ
import pandas as pd from matplotlib import pyplot as plt import math import re import numpy as np import feather from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier from sklearn.model_selection import train_test_split, GridSearchCV from sklearn.pipeline import Pipeline from sklearn.linear_model import SGDClassifier from xgboost import XGBClassifier from lightgbm import LGBMClassifier from datetime import date from dateutil.parser import isoparse from pandas.plotting import tableThe error is now shown:
Error:ImportError Traceback (most recent call last)
<ipython-input-2-53f378af38b1> in <module>()
1 import pandas as pd
----> 2 from matplotlib import pyplot as plt
3 import math
4 import re
5 import numpy as np
C:\Users\james\miniconda3\envs\py-dep\lib\site-packages\matplotlib\__init__.py in <module>()
172
173
--> 174 _check_versions()
175
176
C:\Users\james\miniconda3\envs\py-dep\lib\site-packages\matplotlib\__init__.py in _check_versions()
157 # Quickfix to ensure Microsoft Visual C++ redistributable
158 # DLLs are loaded before importing kiwisolver
--> 159 from . import ft2font
160
161 for modname, minver in [
ImportError: DLL load failed: The specified module could not be found.
I am using matplotlib and matplotlib-base ver 3.3.3I am also using python 3.8.2.
I do not know how to get rid of this error?
Thanks in adavnce.
Respectfully,
LZ