2020-10-31

2020-10-31  本文已影响0人  敲可爱的小超银

若出现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 "<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转化成列表,字典列表等结构都适用此方法

上一篇 下一篇

猜你喜欢

热点阅读