Issue
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import sklearn
from sklearn.model_selection import train_test_split
import statsmodels.api as sm
While running this cell in Jupyter Notebook I am getting the following error:
C:\Anaconda\lib\site-packages\_pytest\_code\__init__.py in <module>
1 """ python inspection/code generation API """
----> 2 from .code import Code # noqa
3 from .code import ExceptionInfo # noqa
4 from .code import filter_traceback # noqa
5 from .code import Frame # noqa
C:\Anaconda\lib\site-packages\_pytest\_code\code.py in <module>
390
391
--> 392 @attr.s(repr=False)
393 class ExceptionInfo(Generic[_E]):
394 """ wraps sys.exc_info() objects and offers
AttributeError: module 'attr' has no attribute 's'
Can somebody explain what is happening?
Solution
This will solve your problem Type these commands in terminal or in a notebook
pip uninstall attr pip install attrs
Answered By - Malik Mussabeheen Noor
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.