美文网首页
搭建Python开发环境

搭建Python开发环境

作者: 烫嘴豆腐 | 来源:发表于2017-06-08 14:39 被阅读17次
image.png image.png image.png image.png

/usr/bin/yum文件

#!/usr/bin/python2.6
import sys
try:
    import yum
except ImportError:
    print >> sys.stderr, """\nThere was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   %s

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
%s

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

""" % (sys.exc_value, sys.version)
    sys.exit(1)

sys.path.insert(0, '/usr/share/yum-cli')
try:
    import yummain
    yummain.user_main(sys.argv[1:], exit_code=True)
except KeyboardInterrupt, e:
    print >> sys.stderr, "

Exiting on user cancel."
    sys.exit(1)
image.png image.png

腾讯云开发者实验室 https://www.qcloud.com/developer/labs

相关文章

  • Python学习一之开发环境搭建

    一、搭建Python开发环境 环境准备 win10 自备 idea idea安装传送阵 Python开发环境搭建步...

  • python入门

    主目录 Python简介 Python版本说明 Python特点 Python环境搭建 Python开发环境IDE...

  • UI自动化入门

    一、环境搭建 1、安装&配置python开发环境 python 下载地址https://www.python.or...

  • windows下搭建并使用python虚拟环境

    虚拟环境搭建: 一、安装python: 参考Eclipse+python开发环境搭建,这里不再赘述。 二、安装pi...

  • python环境搭建

    Windows下搭建 搭建python开发环境 开发环境:适用于进行代码开发的计算机文件编辑环境,专门用于进行软件...

  • 2018-07-10

    1. 开发环境搭建[python开发环境] 1.1. 确认安装什么环境:那个版本的环境[python2.x orp...

  • python学习

    Python 环境搭建 本章节我们将向大家介绍如何在本地搭建Python开发环境。 Python可应用于多平台包括...

  • Python环境搭建(末尾附Python教程视频)

    Python 环境搭建 本章节我们将向大家介绍如何在本地搭建Python开发环境。 Python可应用于多平台包括...

  • 安装Python教程

    Python环境搭建 本章节我们将向大家介绍如何在本地搭建Python开发环境。 Python可应用于多平台包括 ...

  • Python 介绍

    章节 Python 介绍Python 开发环境搭建Python 语法Python 变量Python 数值类型Pyt...

网友评论

      本文标题:搭建Python开发环境

      本文链接:https://www.haomeiwen.com/subject/dottqxtx.html