First, the applicable environment:
Mac series, osx10.10, bring your own Python
Ii. Brief steps:
1. Install Pip,mac with Python environment, so we changed to install PIP
2. Install Wxpython, the version I downloaded here is WXPYTHON2.8-OSX-UNICODE-2.8.12.1-UNIVERSAL-PY2.7.DMG
3. Install robotframework using PIP install
4. Install robotframework-ride using PIP install
5. Complete the basic Environment installation, simple verification
Third, detailed steps:
1. Install Pip
Mac comes with a Python environment, you can open finder-to-utility, open terminal, enter command
Python-v
I can see the version of Python, this is 2.7.10.
So we just need to install PIP, PIP installation has a lot of methods, I recommend one of the most insurance.
Visit this address: Https://pypi.python.org/pypi/pip
Download the latest version of the PIP tar.gz package, when writing the latest PIP version is 8.1.1, so we download pip-8.1.1.tar.gz, after downloading the file automatically unzip, then we in the terminal into the extracted directory,
CD downloads/pip-8.1.1
sudo python setup.py install
Mac Remember to add sudo, do not close the window after the completion, but also useful later.
2. Installing Wxpython
The current version of this operating system osx10.10 can still be installed wxPython2.8.12.1.
: HTTPS://SOURCEFORGE.NET/PROJECTS/WXPYTHON/FILES/WXPYTHON/2.8.12.1/
Hover your mouse over each file to see the full file name, confirming that the name is WXPYTHON2.8-OSX-UNICODE-2.8.12.1-UNIVERSAL-PY2.7.DMG, and do not make any mistakes.
OSX is for Mac, Unicode is required, do not download the ANSI version, 2.8.12.1 is ride stable support version, PY27 is Python2.7 series, do not make the wrong 2.6.
Double-click the DMG file to run
Here to double-click the file that runs wxPython2.8, the end of the PKG
If you see this damage prompt, is not actually damaged, but Mac security issues, please go to System Preferences-security and privacy, modify "Allow applications downloaded from the following location:", change to any source, and then run the pkg can be installed properly.
Click Continue
Click Continue, there will be a agreement for you to agree
Click Agree and click Continue
Click Install
At this point, enter the password for the current user
Then the installation succeeds when the progress bar is completed.
If you are in the 10.11 version, please see the 10.11 article on how to install the Wxpython.
3. Installing Robotframework
We continue to execute commands in the terminal to install the robotframework:
sudo-h pip Install Robotframework
In fact, with Sudo is enough, but sometimes there will be warnings, the proposed plus-H.
See successfully is the installation is complete.
If you do not see successfully, it is possible that your network is having problems because this installation is dependent on the network.
If your network can not be installed, then you can only download Robotframework source package, installation method can refer to the previous PIP installation or look at the installation of WINDOWS32-bit environment installed robotframework this piece of content.
4. Installing Robotframework-ride
To continue installing ride on the terminal, execute the command:
sudo-h pip Install Robotframework-ride
After the installation is successful, perform ride.py on the terminal
Python should is executed in 32-bit mode with WxPython on OSX.
If you see this, it is because Python under the default Mac is running in 64-bit mode, but Wxpython must be run in 32-bit Python mode, there are two ways:
A. Execute the following sentence in the terminal
Defaults write Com.apple.versioner.python Prefer-32-bit-bool Yes
This is the way I use it here.
B. or add the following sentence to the ~/.bash_profile:
Export Versioner_python_prefer_32_bit=yes
After you save the exit and run the source ~/.bash_profile, you can open ride normally.
5. Complete the basic Environment installation, simple verification
Enter ride.py in the terminal, see the following interface is installed successfully.
RF Environment Installation-mac-osx10.10-BASIC Environment-Installation Guide