The accepted answer is outdated. So first, pip is preferred over easy_install, (Why use pip over easy_install?). Then follow these steps to install pip on Windows, it's quite easy.
Install
setuptools:curl https://bootstrap.pypa.io/ez_setup.py | pythonInstall
pip:curl https://bootstrap.pypa.io/get-pip.py | pythonOptionally, you can add the path to your environment so that you can use
pipanywhere. It's somewhere likeC:\Python33\Scripts.
The accepted answer is outdated. So first, pip is preferred over easy_install, (Why use pip over easy_install?). Then follow these steps to install pip on Windows, it's quite easy.
Install
setuptools:curl https://bootstrap.pypa.io/ez_setup.py | pythonInstall
pip:curl https://bootstrap.pypa.io/get-pip.py | pythonOptionally, you can add the path to your environment so that you can use
pipanywhere. It's somewhere likeC:\Python33\Scripts.
Newer versions of Python for Windows come with the pip package manager. (source)
pip is already installed if you're using Python 2 >=2.7.9 or Python 3 >=3.4
Use pip to install packages from the Python Package Index.
cd C:\Python\Scripts\
pip.exe install <package-name>
In your case run:
pip.exe install mechanize
Is there a GUI Python package manager?
Which Python package manager makes automation easiest in 2025?
Which package manager do you use?
Python Package Installation though WSL ?
Videos
» pip install pip
Are there any GUI-based package managers for Python that allow installing libraries and applications without using the command line?
I'm looking for something like a "visual pip" that would make it easy for command-line adverse users to install and manage Python packages.
Does anything like this exist?