RobotFramework安装过程遇到的问题(电脑同时安装python2和3)
发布日期:2021-05-10 11:27:23 浏览次数:19 分类:精选文章

本文共 3684 字,大约阅读时间需要 12 分钟。

������Python2���RF������������������������

���������������Python3.5���������������������������������������������������������Python2������������������RF���������������Python2���Python3���������������������������������������������������������������������


1. ������Python2

1.1 ������������������

���python������������������Python2������������������������������������������ [python-2.7.14.amd64.msi]���������������64������������������������������

1.2 ������������

  • ���������������Python2������������������������������������������������������������������
  • installation������������������������������pip���������Python2���������������������������������������������������������������
  • 1.3 ������������������

    ������������������������������������������������Python2������������������

    C:\> where Python2.exe

    ���������������������������������������������������

    1.4 ������Python������

    ���Python2������������������������������������������������������������

    Python2 --version

    ���������������pip���������

    pip2 --version

    2. Pip������������������������

    2.1 ������������

    ������������������������Python3���������������pip���������������Python2���������������������������pip������������������������������������������

    2.2 ������������

    ���Python2��������������������� python.exe ������������������������������������������������������ python2.exe������������������������������pip2���������������Python3������������

    ���������������

    copy C:\Python2\python.exe C:\
    mv C:\python.exe C:\python2.exe

    2.3 ������

    ������������������������pipe���������������

    python2 --version
    pip2 --version

    3. ������������Python2���pip������

    3.1 ������������

    ������������������������ pip install --upgrade pip������������������������������������������

    3.2 ������������������

    1.������pip���������������https://pypi.org/project/pip/ 2. ������������������������������ 3. ���������������������

    Python2 setup.py build
    Python2 setup.py install
    1. ���������������������������������
    2. pip2 --version

      4. Pip������������������ascii������������������������

      4.1 ������������

      ���������������������pip���������������������������������������gbk������������������������������������������

      4.2 ������������

    3. ���������������������������������
    4. sys.setdefaultencoding('gbk')
      1. ���������������������ride.py������������������������Python2������������������ RIDE.py ������

      2. 5. RIDE ������������������������

        5.1 ������������

        ������������������RIDE������������������������������������������������������������

        5.2 ������������

      3. ��������������������� Scripts ������������
      4. cd D:\Python27\Scripts
        1. ���������������������
        2. python2 ride.py
          1. ���������������������������������������������������wxPython���https://code.google.com/web/ajaxcvs/?branch=standardIENTATION
          2. ��������������������������������� wxPython ��������� ython27\Lib\site-packages ���������

          3. 6. RIDE���������������������

            6.1 ������������

            ������RIDE���������������������������������������������������������������

            6.2 ������������

          4. ������ ride.py ���������������������������������
          5. if sys.getdefaultencoding() != 'gbk':
            reload(sys)
            sys.setdefaultencoding('gbk')
            1. ������������������������������������

            2. 7. RIDE���������������Path������������Python3���

              7.1 ������������

              ������������������������Python3���������������������������������������������

              7.2 ������������

            3. ���cmd���������������������������
            4. python
              1. ���������������������������Python3���
              2. Python --version
                1. ������������������������Python3.5��� python.exe ������������ python.exe���

                2. 8. ������

                  • ���������������������������������������������������������������������������
                  • ������������������������������������������������
                  • ���������������������������������������������������

                  ������������������������������������������������Python2���������������RF���������������������������

    上一篇:框架综合实践(5)-loginView测试用例封装
    下一篇:框架综合实践(4)-data数据读取方法封装

    发表评论

    最新留言

    路过,博主的博客真漂亮。。
    [***.116.15.85]2025年04月07日 08时10分12秒