Python install Python and pip in windows (1), pythonpip
Install Python and pip in windows
Install Python
First, let's install Python, https://www.python.org/downloads/ first
Here we select 2.7.10.
Step 2. Install the SDK. After the download is complete, click Next.
Step 3: Configure Environment Variables
Set environment variables. Therefore, we need to manually add environment variables: right-click my computer-> properties-> advanced system settings-> environment variables-> PATH-> Add our Python installation PATH to the end-> click OK. The following figure is used:
Step 4. After the installation is complete, open the console and enter "Python". We can see the following results:
Finally, the test output is Hello Python.
Install pip
Install pip. We also need to download on the Python official website, is: https://pypi.python.org/pypi/pip#downloads:
After the download is complete, decompress the package to a folder, use the CMD console to enter the decompressed directory, and enter:
Python setup. py install
After the installation, input pip directly in the command line. It also shows that 'pip 'is neither an internal command nor a running program. Because we have not added environment variables.
According to the method described earlier to add environment variables, we add the following at the end of PATH:
C: \ Python34 \ Scripts;
Now we have installed pip completely:
================================
Upgrade the package to the latest version. You can use-U or -- upgrade
Pip install-U Markdown
Uninstall package
Pip uninstall Markdown
Query package
Pip search "multiprocessing"
List Installed packages
$ Pip freeze