1, Mac installation Htmltestrunner, reference: 50555123
Cd/library/python/2.7/site-packages
sudo mkdir htmltestrunner
sudo touch htmltestrunner.py
Copy download htmltestrunner.py module content: http://tungwaiyip.info/software/HTMLTestRunner.html
and create a new __init__.py file, where the Htmltestrunner folder is considered by the Python interpreter to be a referenced module
Import Htmltestrunner can
2, Python install xlrd module 70674253
3, verify the Mac native-mounted Python version, 2.7.10, after the module is available, install Pycharm
Download Http://xclient.info/s/pycharm.html?t=607f34623d47ed1b8125fc5bd7515a28c1cd4f41#versions (2017)
Download cracked version
Registration is now set host:0.0.0.0 account.jetbrains.com
Then http://idea.lanyus.com/this URL to copy the registration code
3,pycharm use
pycharm-->preferences-->project:untitled-->project Interpreter
Python version can be set
Right-click the project name to create a new Python file, print "SS", and click Run.
Python mac Environment configuration