2020-10-31

若出现Agent admitted failure to sign using the key.

运行: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 "", line 1, in

  File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/__init__.py", line 41, in

    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

    from tensorflow.python import keras

  File "/home1/chenxy/lenv/1.6/lib/python3.5/site-packages/tensorflow/python/keras/__init__.py", line 27, in

    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

    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

    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

    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

    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

    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

    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

    from tensorflow.python.keras._impl.keras.backend import abs

ImportError: cannot import name 'abs'

pip uninstall tensorflow protobuf --yes

(安装opennmt 然后tensorflow 不好用)



    eval(a) 可以将a转化成列表,字典列表等结构都适用此方法

你可能感兴趣的:(2020-10-31)