zoukankan      html  css  js  c++  java
  • 【技术文档】XuebaOnline配环境时遇到的问题和解决办法

    在Ubuntu下装XuebaOnline可能遇到的问题和解决办法

    自动安装Python3.0以上版本

    编译命令采用python3 manage.py runserver,所以在linux系统下需要安装Python3.0以上的版本,以下命令适用于Ubuntu系统。

    安装 Python 3.5及依赖:
    sudo apt-get install python3.5
    sudo apt-get install python3.5-dev
    sudo apt-get install libncurses5-dev

    安装Python3下的pip:

    sudo apt-get install python3-pip

    [注]如果同时安装了python2和python3,使用pip安装对应python3版本的软件包时需要使用pip3命令,如:sudo pip3 install django

    semantic-ui等包装不上

    可以从装好的同学的文件夹里拷贝semantic-ui文件夹

    经验证,直接从已经配好环境的同学那里拷贝整个XuebaOnline文件夹可以不用npm命令来安装本地的包,但是pip命令安装的包还是必需的。

    pip安装下载慢,报超时错误

    pip默认使用国外的源,可能会下载得比较慢,比如我装django包的时候就一直报超时错误。

    可以使用国内阿里云或者其他比较快的源。

    linux下运行命令
    vi ~/.pip/pip.conf
    然后写入如下内容并保存

     [global]
     trusted-host =  mirrors.aliyun.com
     index-url = http://mirrors.aliyun.com/pypi/simple

     npm下载慢,报超时错误

    更改为淘宝的npm源

    在终端中输入一下命令即可

    $ npm install -g cnpm --registry=http://registry.npm.taobao.org

  • 相关阅读:
    Python获取秒级时间戳与毫秒级时间戳
    时间戳与时间类型转化(秒级时间戳)
    linux压缩和解压缩命令
    对于Python中@property的理解和使用
    探索性测试方法
    Linux 中 grep 命令的 12 个实践例子
    在 Linux 启动或重启时执行命令与脚本
    亲测的orabbix监控Oracle过程
    find 使用搜集
    Centos7.3-mysql5.7复制安装过程
  • 原文地址:https://www.cnblogs.com/liuliudashun/p/6025344.html
Copyright © 2011-2022 走看看