Skip to main content


Project description


Help building a pyenv local mirror!


pip install pyenv-mirror


$ pyenv-mirror-download --help
    pyenv-mirror create-mirror
    pyenv-mirror download-package <pkg-name> [<python-build-path>]


$ ls
$ pyenv-mirror create-mirror
$ ls

Create a directory named pyenv-local-mirror in current working directory. The structure of pyenv-local-mirror is almost identical to yyuu/, except that all the so-called “packages” located in pyenv-local-mirror/pythons were removed.


pyenv-mirror download-package downloads all related files of a package to current working directory. pyenv-mirror download-package <pkg-name> [<python-build-path>]:

  • <pkg-name>, same as the arguement following pyenv install.

  • <python-build-path>, the path of python-build directory. If you installed pyenv through homebrew, you might need to pass the path of above directory explicitly. If omitted, the path is default to $PYENV_ROOT/plugins/python-build/share/python-build.

$ pyenv-mirror download-package 2.7 '/usr/local/Cellar/pyenv/20160310/plugins/python-build/share/python-build'
$ ls
Python-2.7.tgz        openssl-1.0.2g.tar.gz readline-6.3.tar.gz

Start The Mirror

  1. cd pyenv-local-mirror.

  2. Define your PYTHON_BUILD_MIRROR_URL in ./pythons/

  3. Customize HTTP port by changing PORT of ./pythons/ By default, PORT equals to 8999.

  4. Execute script ./pythons/

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyenv_mirror-0.2.3.tar.gz (7.2 MB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page