若出現(xiàn)Agent admitted failure to sign using the key.
運(yùn)行:ssh-add ~/.ssh/id_rsa
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Read timed out.
pip --default-timeout=100 install xxx
Traceback (most recent call last):
? File "<stdin>", line 1, in <module>
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/__init__.py", line 41, in <module>
? ? from tensorflow.python.tools import module_util as _module_util
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/__init__.py", line 47, in <module>
? ? from tensorflow.python import keras
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/keras/__init__.py", line 27, in <module>
? ? from tensorflow.python.keras import models
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/keras/models/__init__.py", line 21, in <module>
? ? from tensorflow.python.keras._impl.keras.models import load_model
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/__init__.py", line 21, in <module>
? ? from tensorflow.python.keras._impl.keras import activations
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/activations.py", line 23, in <module>
? ? from tensorflow.python.keras._impl.keras import backend as K
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/backend.py", line 37, in <module>
? ? from tensorflow.python.layers import base as tf_base_layers
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/layers/base.py", line 20, in <module>
? ? from tensorflow.python.keras.legacy_tf_layers import base
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/keras/legacy_tf_layers/base.py", line 25, in <module>
? ? from tensorflow.python.keras import backend
? File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/keras/backend/__init__.py", line 22, in <module>
? ? from tensorflow.python.keras._impl.keras.backend import abs
ImportError: cannot import name 'abs'
pip uninstall tensorflow protobuf --yes
(安裝opennmt 然后tensorflow 不好用)
? ? eval(a) 可以將a轉(zhuǎn)化成列表缆瓣,字典列表等結(jié)構(gòu)都適用此方法