zoukankan      html  css  js  c++  java
  • caffe2--------ImportError: No module named past.builtins

    whale@sea:~/anaconda2/lib/python2.7/site-packages$ python  
    Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 16 2017, 17:29:19) 
    [GCC 7.2.0] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    >>> import  caffe2
    >>> import  caffe2.python
    >>> import  caffe2.python.core
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/local/caffe2/python/core.py", line 9, in <module>
        from past.builtins import basestring
    ImportError: No module named past.builtins
    >>> exit()
    whale@sea:~/anaconda2/lib/python2.7/site-packages$ sudo  pip install future
    The directory '/home/whale/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    The directory '/home/whale/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    Requirement already satisfied: future in /usr/local/lib/python2.7/dist-packages
    whale@sea:~/anaconda2/lib/python2.7/site-packages$ pip  install   future  
    Collecting future
      Downloading future-0.16.0.tar.gz (824kB)
        100% |████████████████████████████████| 829kB 1.5MB/s 
    Building wheels for collected packages: future
      Running setup.py bdist_wheel for future ... done
      Stored in directory: /home/whale/.cache/pip/wheels/c2/50/7c/0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a
    Successfully built future
    Installing collected packages: future
    Successfully installed future-0.16.0
    whale@sea:~/anaconda2/lib/python2.7/site-packages$ python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"
    Success
    whale@sea:~/anaconda2/lib/python2.7/site-packages$ 
    whale@sea:~/anaconda2/lib/python2.7/site-packages$ python  
    Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 16 2017, 17:29:19) 
    [GCC 7.2.0] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    >>> import  caffe2
    >>> import  caffe2.python
    >>> import  caffe2.python.core
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/local/caffe2/python/core.py", line 9, in <module>
        from past.builtins import basestring
    ImportError: No module named past.builtins
    >>> exit()
    whale@sea:~/anaconda2/lib/python2.7/site-packages$ sudo  pip install future
    The directory '/home/whale/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    The directory '/home/whale/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    Requirement already satisfied: future in /usr/local/lib/python2.7/dist-packages
    whale@sea:~/anaconda2/lib/python2.7/site-packages$ pip  install   future  
    Collecting future
      Downloading future-0.16.0.tar.gz (824kB)
        100% |████████████████████████████████| 829kB 1.5MB/s 
    Building wheels for collected packages: future
      Running setup.py bdist_wheel for future ... done
      Stored in directory: /home/whale/.cache/pip/wheels/c2/50/7c/0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a
    Successfully built future
    Installing collected packages: future
    Successfully installed future-0.16.0
    whale@sea:~/anaconda2/lib/python2.7/site-packages$ python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"
    Success
    whale@sea:~/anaconda2/lib/python2.7/site-packages$ 
  • 相关阅读:
    演示使用Metasploit入侵Windows
    Metasploit的基本使用
    安装使用lynis扫描Linux的安全漏洞
    使用Metasploit收集邮箱信息
    Kali Linux:使用nmap扫描主机
    Kali Linux安装SSH Server
    【转】PHP 无限级分类(递归)
    【转】Mysql only_full_group_by以及其他关于sql_mode原因报错详细解决方案
    ERROR 1366 (HY000): Incorrect string value: 'xADxE5x9BxBDxE9x82...' fo的解决方法
    深入理解HTTP协议
  • 原文地址:https://www.cnblogs.com/leoking01/p/8245157.html
Copyright © 2011-2022 走看看