Install ZIP version Python and pip on Windows 10

at first

This is an article for me that I want to use Python on Windows but don't put in extra things. Perhaps the installer will not change that.

Download the ZIP version of Python

Download Python for Windows from the official. https://www.python.org/downloads/windows/

I wanted a 64-bit version of Python 3.7, so I downloaded the following.

Note that Python 3.7.6 cannot be used on Windows XP or earlier. ・ Download Windows x86-64 embeddable zip file

Deploy to your favorite place

I have an operation that installs the application in % USERPROFILE% \ bin, so I expanded it to% USERPROFILE% \ bin \ python3.

Pass the python path

Add the expanded Python expansion path to the PATH environment variable.

Example


%USERPROFILE%\bin\python3

In the case of Windows 10, the Microsoft Store may start with the python command, so The Python path must be set before % USERPROFILE% \ AppData \ Local \ Microsoft \ WindowsApps.

install pip

It seems that you can easily insert pip using the installer version, but the ZIP version does not include pip. The official documentation describes how to install it. https://pip.pypa.io/en/stable/installing/ It seems that you can download and run https://bootstrap.pypa.io/get-pip.py.

python get-pip.py

pass the pip path

Add the pip path to the environment variable PATH.

[Python expansion path]\Scripts

Enable import site

If it is left as it is, pip will not start properly, so edit [python expansion path] \ python37._pth to enable the line of ʻimport site`.

python37._pth


python37.zip
.

# Uncomment to run site.main() automatically
- #import site
+ import site

Finally

I installed Python and pip because I wanted to use the vim plugin, so I ran the following command to check the operation.

pip install pynvim

Recommended Posts

Install ZIP version Python and pip on Windows 10
Install xgboost (python version) on Windows
Install Python on Windows + pip + virtualenv
Install easy_install and pip on windows
Install python and Visual Studio Code on windows10 (April 2020 version)
Install and run Python3.5 + NumPy + SciPy on Windows 10
Notes on installing Python3 and using pip on Windows7
Install watchdog on Windows + Python 3.3
Install Python and Flask (Windows 10)
[Python] [Chainer] [Windows] Install Chainer on Windows
[Windows] [Python3] Install python3 and Jupyter Notebook (formerly ipython notebook) on Windows
Install pyenv on Raspberry Pi and version control Python
Python 3.6 on Windows ... and to Xamarin.
Install Python 2.7.9 and Python 3.4.x with pip.
Pip install --ugrade pip fails on Windows
Install python2.7 on windows 32bit environment
Build and install OpenCV on Windows
Install Pytorch on Blender 2.90 python on Windows
Integrate Modelica and Python on Windows
Mastering pip and wheel on windows
Install Python development environment on Windows 10
Install python3 and scientific calculation library on Ubuntu (virtualenv + pip)
Python on Windows
[Kivy] How to install Kivy on Windows [Python]
Install wsl2 and master linux on windows
scipy stumbles with pip install on python 2.7.8
Install python on xserver to use pip
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Install python on WSL
[Python] pip and wheel
[2020 version] How to install Python3 on AWS EC2
Install Python3, numpy, pandas, matplotlib, etc. on Windows
Install Python on Pidora.
Install Scrapy on python3
Install Python on Mac
Install Python 3 on Mac
Install Python3.4 on CentOS 6.6
python basic on windows ②
Put MeCab binding for Python with pip on Windows, mac and Linux
Run pip install on MacOS Python 3.7 or later
Install Python 2.7.3 on CentOS 5.4
Install pygraphviz on Windows 10
Install Python 3.3 on Ubuntu 12.04
[Python] How to install OpenCV on Anaconda [Windows]
Install Python 3.4 on Mac
[Note] Installing Python 3.6 + α on Windows and RHEL
Use pip on Windows
Install pip / pip3 on Ubuntu
Eliminates SSL error when PIP Install on Windows.
Install Python 3.6 on Docker
Install Python and libraries for Python on MacOS Catalina
Install Python (for Windows)
Initial settings for using Python3.8 and pip on CentOS8
Install Python3 on Mac and build environment [Definitive Edition]
Install selenium on Mac and try it with python
Compile and install MySQL-python for python2.7 on amazon linux
Create a decent shell and python environment on Windows
Install django on python + anaconda and start the server
Install Bash on Ubuntu on Windows, Ruby, Python, Jupyter, etc.
For those who can't install Python on Windows XP