Build the python + PyCharm environment using the API, and use pythonpycharm
1.Configure Python Environment Variables
A: My computer> Properties> advanced system Settings> environment variables> PATH variables in system variables.
Variable name: PATH variable value:; C: \ Python27 (Python installation directory)
B: verify whether the configuration is successful: Open cmd and enter the command python Press enter. If the following text is displayed, the command is successful.
C: \ Users \ Administrator> python
Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
2. InstallSetuptools
Find the path of setuptools In the cmd window, and enter the following command: python setup. py install to install
3. Install pip
Find the pip path in the cmd window and enter the following command: python setup. py install
Enter the C: \ Python27 \ Scripts directory and enter the command esay_install pip (this step is not required)
3. Install the xlrd Library
In the cmd window, enter the following command cd C: \ Python27 \ Scripts
Pip install xlrd
4. Install the PyCharm tool.