1. Download Anaconda and install
Address: https://www.anaconda.com/download/
Anaconda includes a python base package and a series of scientific computing packages that are installed without having to install Python separately.
2, Installation Pycharm
Address: https://www.jetbrains.com/pycharm/
Pycharm is the python development IDE.
3. Install Python components using PIP
Pip is a Python component management command, Anaconda scripts directory, my environment path is as follows
C:\ProgramData\Anaconda2\Scripts
(1) Online installation
CMD into the PIP directory
Pip install Python component, download and install online
Pip Uninstall Python component, uninstalling the Python component
(2) PIP Setup Agent
Pip--proxy=http://[user name: password] @[host:port] Install Python components, such as
Pip--proxy=http://coshaho:[email protected]:8080 Install NumPy
(3) Offline installation
You can search for the components you need at the following address: https://www.lfd.uci.edu/~gohlke/pythonlibs/
Pip install absolute path/python component file name, perform an offline installation, for example
Pip Install C:\USERS\COSHAHO\DOWNLOADS\LOCKFILE-0.12.2-PY2.PY3-NONE-ANY.WHL
4. Create a Python project
Pycharm–> File--New Project
Where base interpreter specifies the Python path, inherit global site-packages is introduced to all installed Python components.
5. Import Python Project
Pycharm–> File--Open
Note that you need to set the package path start location to content Root in project structure,,file–> settings–> projects
6. Could not find or load Qt Platform Plugin exception resolution
(1) Conda installation QT,PYQT
Conda for Anaconda Component Management commands, the directory is as follows C:\ProgramData\Anaconda2\Scripts
-
- Online Installation: Conda install Qt,conda install PYQT
- Conda proxy settings: Edit the C:\Users\h00219638\. condarc file and add the following
Use_pip:true
Proxy_servers:
Http:http://coshaho:[email protected]:8080
Https:https://coshaho:[email protected]:8080
3. Offline installation
Conda Component library: https://repo.continuum.io/pkgs/free/win-64/
Conda install absolute path \ component file name, offline installation, for example
Conda Install C:\ProgramData\Anaconda2\pkgs\qt-5.6.0-vc9_0.tar.bz2
4. Setting the QT environment variable
Qt_qpa_platform_plugin_path=c:\programdata\anaconda2\pkgs\qt-5.6.0-vc9_0\library\plugins
Win7 Python development Environment Building