zoukankan      html  css  js  c++  java
  • tornado的安装

     
    centos6.4 安装tornado框架
    连接工具  xshell 工具


    1.如果在windows下有tornado的安装包
    首先现在上装到linux下的上传工具:
    yum install lrzsz   (通过xshell上传到linux的工具)
        将安装包拖到下xshell终端下
    没有tornado安装包:
    2.下载tornado的安装包:
    下载地址:wget https://pypi.python.org/packages/source/t/tornado/tornado-3.0.2.tar.gz


    如果在终端执行 
    [root@quan src]# wget https://pypi.python.org/packages/source/t/tornado/tornado-3.0.2.tar.gz
    出现下面的信息
    -bash: wget: command not found
    执行下
    yum -y install wget  
    安装好 wget 下载工具:
    在执行
    wget https://pypi.python.org/packages/source/t/tornado/tornado-3.0.2.tar.gz


    如果执行出现这个错误
    --2013-11-29 20:59:53--  https://pypi.python.org/packages/source/t/tornado/tornado-3.0.2.tar.gz
    正在解析主机 pypi.python.org... 103.245.222.184
    正在连接 pypi.python.org|103.245.222.184|:443... 已连接。
    错误: 证书通用名 “*.a.ssl.fastly.net” 与所要求的主机名 “pypi.python.org” 不符。
    要以不安全的方式连接至 pypi.python.org,使用‘--no-check-certificate’。


    就执行下列命令:
    wget  --no-check-certificate   https://pypi.python.org/packages/source/t/tornado/tornado-3.0.2.tar.gz
    就可以将tornado安装下载下来了


    3.安装tornado:
    解压 tornado-3.0.2.tar.gz
        
        [root@quan src]# tar -zxvf tornado-3.0.2.tar.gz


        [root@quan src]# cd tornado-3.0.2


        [root@quan tornado-3.0.2]# python setup.py  build        编译tornado框架


        [root@quan tornado-3.0.2]# Python setup.py  install      安装tornado出现(Writing /usr/lib/python2.6/site-packages/tornado-3.0.2-py2.6.egg-info说明安装成功)

    4.安装后执下面操作:

    [root@quan tornado-3.0.2]# python 
    Python 2.6.6 (r266:84292, Feb 21 2013, 23:54:59) 
    [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tornado
    >>> 

    说明tornado已经可以使用了

  • 相关阅读:
    姐姐的vue(1)
    LeetCode 64. Minimum Path Sum 20170515
    LeetCode 56. 56. Merge Intervals 20170508
    LeetCode 26. Remove Duplicates from Sorted Array
    LeetCode 24. Swap Nodes in Pairs 20170424
    LeetCode 19. Remove Nth Node From End of List 20170417
    LeetCode No.9 Palindrome Number 20170410
    LeetCode No.8. String to Integer (atoi) 2017/4/10(补上一周)
    LeetCode No.7 Reverse Integer 2017/3/27
    LeetCode No.4 Median of Two Sorted Arrays 20170319
  • 原文地址:https://www.cnblogs.com/lvdongjie/p/6495069.html
Copyright © 2011-2022 走看看