For people who need use portable Python on Windows, WinPython is a good choice. WinPython is a free open-source portable distribution of Python. The project is hosted on github. It is also a good alternative to Portable Python, which is not being developed anymore.
In this post I’ll show you how could you install additional packages to WinPython.
Install WinPython
WinPython is portable. It means that you can download WinPython from the WinPython download page, add it to your system PATH, and start using it without any installation.
- Unzip the downloaded WinPython Package to a local directory, eg.
C:\WinPython
. - Add the local directory path to your system’s
PATH
variable. You can use Windows commandset
orsetx
.
1
|
|
Now you can open a Windows cmd prompt, and test your installed python version.
1 2 |
|
Install a package
You can install a Python Package to WinPython using pip
. If you have other versions of Python installed on your computer, you’ll need make sure the pip
you use actually is the one WinPython provides.
Where is the pip
?
It’s in the Scripts
directory of the WinPython path.
For example:
1
|
|
Now you can use the WinPython pip
to install additional Python packages.
1
|
|
If the installation successfully done, you will find the installed packages in WinPython’s library path.
1
|
|
That’s it! Your Python package is ready to use!