MAC系统M1芯片安装Python3 RobotFramework全攻略

MAC系统M1芯片安装Python3 RobotFramework全攻略

首页休闲益智soupsoup中文版更新时间:2024-10-16

前言:

M1芯片只能安装python3.9,以下版本不支持

需要注意:robotframework-rideh和wxpython版本的适配

python2和python3版本的兼容性,特别是python和pip版本的指向需要正确配置

需要修改/usr/local/bin/pip 的头文件指向python3的目录

以下是需要安装的robotframework的版本:

@MacBook-Pro ~ % pip list

Package Version

------------------------------- ----------

baostock 0.8.8

beautifulsoup4 4.9.3

bs4 0.0.1

certifi 2020.12.5

chardet 4.0.0

cycler 0.10.0

greenlet 1.0.0

idna 2.10

kiwisolver 1.3.1

lxml 4.6.3

matplotlib 3.4.1

numpy 1.20.3

pandas 1.2.4

Pillow 8.2.0

pip 21.1.2

psutil 5.8.0

Pygments 2.4.2

PyMySQL 1.0.2

pyparsing 2.4.7

Pypubsub 4.0.3

python-dateutil 2.8.1

pytz 2021.1

requests 2.25.1

robotframework 3.1.2

robotframework-pythonlibcore 2.2.1

robotframework-ride 2.0b2.dev3

robotframework-selenium2library 3.0.0

robotframework-seleniumlibrary 3.3.1

robotframeworklexer 1.1

selenium 3.141.0

setuptools 49.2.1

six 1.16.0

soupsieve 2.2.1

urllib3 1.25.3

wxPython 4.1.1

环境变量的配置:

export PATH=${PATH}:/Library/Frameworks/Python.framework/Versions/3.9/bin

alias python="/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9"

export PATH=${PATH}:/Library/Frameworks/Python.framework/Versions/3.9/bin

alias pip="/Library/Frameworks/Python.framework/Versions/3.9/bin/pip3"

查看全文
大家还看了
也许喜欢
更多游戏

Copyright © 2024 妖气游戏网 www.17u1u.com All Rights Reserved