Install Python 2.7 (64-bit win10) and pythonwin10
Python 2.7.12
: Https://www.python.org/downloads/release/python-2712/
Installation path D: \ Program Files \ Python27
Python environment installation is relatively simple. Download the windows version of msi file in the python language environment, download it, and double-click to install it.
When you select to add a Path to the system during installation, the Path of python installation is automatically added to the environment variable Path. D: \ Program Files \ Python27
Run cmd and test it in the command line.
As shown in, run the python command and output the classic Hello, world !, Indicates that the python environment has been installed successfully.
You can use IDLE to compile python programs.
Setuptools and pip installation: this can automatically install subsequent related components. However, you need to manually download related components in windows and run setup. py in python for installation.
The installation method is to open cmd, enter the setuptools directory, and run the python setup. py install command to install.
Setuptools 28.6.1
Setuptools is a sub-project of Python Enterprise Application Kit (PEAK). It is an enhanced tool for a group of Python distutilsde tools (applicable to Python 2.3.5 and later versions, the 64-bit platform is applicable to Python 2.4 and later versions. This allows programmers to easily create and release Python packages, especially those that are dependent on other packages.
: Https://pypi.python.org/pypi/setuptools
The installation method is to open cmd, enter the extraction directory of setuptools D: \ python64 \ setuptools-28.6.1, run python setup. py install command to install.
After the installation is complete, you can enter easy_install.exe in the scriptsdirectory under the installation directory of python. If yes, the installation is successful. Then add the Scripts path to the environment variable.
Pip
No installation is allowed. input the pip command and output the following:
D: \ Python 64 \ setuptools-28.6.1> pip
Usage:
Pip <command> [options]
Commands:
Install Install packages.
Download Download packages.
Uninstall Uninstall packages.
Freeze Output installed packages in requirements format.
List List installed packages.
Show Show information about installed packages.
Search Search PyPI for packages.
Wheel Build wheels from your requirements.
Hash Compute hashes of package archives.
Completion A helper command used for command completion
Help Show help for commands.
General Options:
-H, -- help Show help.
-- Isolated Run pip in an isolated mode, ignoring
Environment variables and user configuration.
-V, -- verbose Give more output. Option is additive, and can be
Used up to 3 times.
-V, -- version Show version and exit.
-Q, -- quiet Give less output.
-- Log <path> Path to a verbose appending log.
-- Proxy <proxy> Specify a proxy in the form
[User: passwd @] proxy. server: port.
-- Retries <retries> Maximum number of retries each connection shold
Attempt (default 5 times ).
-- Timeout <sec> Set the socket timeout (default 15 seconds ).
-- Exists-action <action> Default action when a path already exists:
(S) witch, (I) gnore, (w) ipe, (B) ackup.
-- Trusted-host
Not have valid or any HTTPS.
-- Cert <path> Path to alternate CA bundle.
-- Client-cert <path> Path to SSL client certificate, a single file
Containing the private key and the certificate
In PEM format.
-- Cache-dir <dir> Store the cache data in <dir>.
-- No-cache-dir Disable the cache.
-- Disable-pip-version-check
Don't periodically check PyPI to determine
Whether a new version of pip is available
Download. Implied with -- no-index.
However, an update prompt is displayed when pip is used.
You are using pip version 8.1.1, however version 8.1.2 is available.
You shoshould consider upgrading via the 'python-m pip install -- upgrade pip 'command.
Therefore, use python-m pip install -- upgrade pip to update pip, or download the latest pip and install it using the python setup. py install command.
Pip 8.1.2
: Https://pypi.python.org/pypi/pip#downloads
Common pip usage:
Pip install numpy -- installation package numpy
Pip uninstall numpy -- uninstall the package numpy
Pip show -- files PackageName -- View installed packages
Pip list outdated -- View package information to be updated
Pip install -- upgrade numpy -- upgrade package
Pip install-U PackageName -- upgrade package
Pip search PackageName -- search package
Pip help -- display help information