zoukankan      html  css  js  c++  java
  • 利用远程服务器在docker容器搭建pyspider运行时出错的问题

    This system supports the C.UTF-8 locale which is recommended.
    You might be able to resolve your issue by exporting the
    following environment variables:
    
        export LC_ALL=C.UTF-8
        export LANG=C.UTF-8
    root@864a8a8e5157:/home/pyspider# pyspider all
    Traceback (most recent call last):
      File "/usr/local/bin/pyspider", line 11, in <module>
        sys.exit(main())
      File "/usr/local/lib/python3.6/dist-packages/pyspider/run.py", line 754, in main
        cli()
      File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 764, in __call__
        return self.main(*args, **kwargs)
      File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 696, in main
        _verify_python3_env()
      File "/usr/local/lib/python3.6/dist-packages/click/_unicodefun.py", line 124, in _verify_python3_env
        ' mitigation steps.' + extra
    RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/en/7.x/python3/ for mitigation steps.
    
    This system supports the C.UTF-8 locale which is recommended.
    You might be able to resolve your issue by exporting the
    following environment variables:
    
        export LC_ALL=C.UTF-8
        export LANG=C.UTF-8

    解决方法在docker服务器里直接运行这两个命令即可:

    export LC_ALL=C.UTF-8
    export LANG=C.UTF-8

    现在随时随地用浏览器就可以直接访问了

     

  • 相关阅读:
    链表 | 递归删除不带头结点链表所有x元素
    A1016 | 磨人的大模拟
    Ubuntu 下安装 Qt Designer
    shell札记
    A1102 | 反转二叉树
    顺序表 | 二分查找:两个数组合并后的中位数
    A1113 | Integer Set Partition (25)
    A1128 | 逻辑想象能力、简洁高效美观的代码、memset的使用情景
    05.字符串
    04.序列的应用
  • 原文地址:https://www.cnblogs.com/yunlongaimeng/p/9947624.html
Copyright © 2011-2022 走看看