以下是成绩单:
dims@calculon:~$ pip install tensorflow-gpu
Collecting tensorflow-gpu
Downloading tensorflow_gpu-1.4.0-cp35-cp35m-manylinux1_x86_64.whl (170.1MB)
100% |████████████████████████████████| 170.1MB 10kB/s
Requirement already satisfied: numpy>=1.12.1 in ./.local/lib/python3.5/site-packages (from tensorflow-gpu)
Requirement already satisfied: protobuf>=3.3.0 in ./.local/lib/python3.5/site-packages (from tensorflow-gpu)
Requirement already satisfied: wheel>=0.26 in ./.local/lib/python3.5/site-packages (from tensorflow-gpu)
Collecting tensorflow-tensorboard<0.5.0,>=0.4.0rc1 (from tensorflow-gpu)
Downloading tensorflow_tensorboard-0.4.0rc2-py3-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 844kB/s
Requirement already satisfied: six>=1.10.0 in ./.local/lib/python3.5/site-packages (from tensorflow-gpu)
Collecting enum34>=1.1.6 (from tensorflow-gpu)
Downloading enum34-1.1.6-py3-none-any.whl
Requirement already satisfied: setuptools in ./.local/lib/python3.5/site-packages (from protobuf>=3.3.0->tensorflow-gpu)
Requirement already satisfied: bleach==1.5.0 in ./.local/lib/python3.5/site-packages (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow-gpu)
Requirement already satisfied: markdown>=2.6.8 in ./.local/lib/python3.5/site-packages (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow-gpu)
Requirement already satisfied: werkzeug>=0.11.10 in ./.local/lib/python3.5/site-packages (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow-gpu)
Requirement already satisfied: html5lib==0.9999999 in ./.local/lib/python3.5/site-packages (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow-gpu)
Installing collected packages: tensorflow-tensorboard, enum34, tensorflow-gpu
Found existing installation: tensorflow-tensorboard 0.1.8
Uninstalling tensorflow-tensorboard-0.1.8:
Successfully uninstalled tensorflow-tensorboard-0.1.8
Successfully installed enum34-1.1.6 tensorflow-gpu-1.4.0 tensorflow-tensorboard-0.4.0rc2
dims@calculon:~$ python
Python 3.5.4 | packaged by conda-forge | (default, Nov 4 2017, 10:11:29)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/lib/python3.5/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/opt/anaconda3/lib/python3.5/site-packages/tensorflow/python/__init__.py", line 83, in <module>
from tensorflow.python.estimator import estimator_lib as estimator
File "/opt/anaconda3/lib/python3.5/site-packages/tensorflow/python/estimator/estimator_lib.py", line 35, in <module>
from tensorflow.python.estimator.inputs import inputs
File "/opt/anaconda3/lib/python3.5/site-packages/tensorflow/python/estimator/inputs/inputs.py", line 22, in <module>
from tensorflow.python.estimator.inputs.numpy_io import numpy_input_fn
File "/opt/anaconda3/lib/python3.5/site-packages/tensorflow/python/estimator/inputs/numpy_io.py", line 22, in <module>
from tensorflow.python.estimator.inputs.queues import feeding_functions
File "/opt/anaconda3/lib/python3.5/site-packages/tensorflow/python/estimator/inputs/queues/feeding_functions.py", line 40, in <module>
import pandas as pd
File "/opt/anaconda3/lib/python3.5/site-packages/pandas/__init__.py", line 23, in <module>
from pandas.compat.numpy import *
File "/opt/anaconda3/lib/python3.5/site-packages/pandas/compat/__init__.py", line 361, in <module>
from dateutil import parser as _date_parser
File "/opt/anaconda3/lib/python3.5/site-packages/dateutil/parser.py", line 158
l.append("%s=%s" % (attr, `value`))
^
SyntaxError: invalid syntax
什么backqoutes在python中意味着什么?
答案 0 :(得分:0)
重新安装
pip install python-dateutil --upgrade
帮助。
这是在Anaconda中播放python版本的结果。 Althoug我从未尝试过&lt; 3.4