我是python的新手所以这个问题可能看起来很愚蠢。在我安装pandas之前,一切都很好。安装后,我试试
>>>import tensorflow
usage: [-h] [--sum] N [N ...]
: error: the following arguments are required: N
在空闲中:
>>> import tensorflow
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import tensorflow
File "C:\Users\35963\AppData\Local\Programs\Python\Python35\lib\site-
packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import *
File "C:\Users\35963\AppData\Local\Programs\Python\Python35\lib\site-
packages\tensorflow\python\__init__.py", line 77, in <module>
from tensorflow.python.estimator import estimator_lib as estimator
File "C:\Users\35963\AppData\Local\Programs\Python\Python35\lib\site-
packages\tensorflow\python\estimator\estimator_lib.py", line 24, in <module>
from tensorflow.python.estimator.inputs import inputs
File "C:\Users\35963\AppData\Local\Programs\Python\Python35\lib\site-
packages\tensorflow\python\estimator\inputs\inputs.py", line 22, in <module>
from tensorflow.python.estimator.inputs.numpy_io import numpy_input_fn
File "C:\Users\35963\AppData\Local\Programs\Python\Python35\lib\site-
packages\tensorflow\python\estimator\inputs\numpy_io.py", line 22, in
<module>
from tensorflow.python.estimator.inputs.queues import feeding_functions
File "C:\Users\35963\AppData\Local\Programs\Python\Python35\lib\site-
packages\tensorflow\python\estimator\inputs\queues\feeding_functions.py",
line 40, in <module>
import pandas as pd
File "C:\Users\35963\AppData\Local\Programs\Python\Python35\lib\site-
packages\pandas\__init__.py", line 51, in <module>
plot_params = pandas.plotting._style._Options(deprecated=True)
AttributeError: module 'pandas' has no attribute 'plotting'
这是否意味着我的张量流和熊猫不相容?:(
我用pip安装它们。他们的版本:python3.5.2,tensorflow(1.2.1),pandas(0.20.3)