pyenv-win icon indicating copy to clipboard operation
pyenv-win copied to clipboard

bug:Environment variable PYTHON_BUILD_MIRROR_URL doesn't work.

Open leojay-wang opened this issue 6 years ago • 5 comments

Describe the bug I changed variable PYTHON_BUILD_MIRROR_URL to https://npm.taobao.org/mirrors/python/,but it doesn't take effect。

To Reproduce I added a user environment variable PYTHON_BUILD_MIRROR_URL。It is https://npm.taobao.org/mirrors/python/。 After,I open cmd and type "pyenv install 2.7.6" to execute. cmd show below:

:: [Info] ::  Mirror: https://npm.taobao.org/mirrors/python/
:: [Downloading] ::  2.7.6 ...
:: [Downloading] ::  From https://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi
:: [Downloading] ::  To   C:\Users\lejie\.pyenv\pyenv-win\install_cache\python-2.7.6.amd64.msi

Progress will block because China to foreign country network speed is very slow. And,we can see 3 line.The mirror address still use https://www.python.org/ftp/python/,but not https://npm.taobao.org/mirrors/python/。

Expected behavior 3 line should be "https://npm.taobao.org/mirrors/python/2.7.6/python-2.7.6.amd64.msi"

Screenshots QQ截图20200924095811.png

Desktop (please complete the following information):

  • OS: windows10 1909。
  • Pyenv is latest version in pip。It's 2.64.3.

Additional context Empty。

leojay-wang avatar Sep 24 '20 02:09 leojay-wang

Maybe, you are supposed to try pyenv update first and wait for a moment! Then the cached python version DB will be the latest edition of the mirror that you set. See more, please type pyenv update --help. WHERE to find the DB file: ~\.pyenv\pyenv-win\.versions_cache.xml

CodeMasterYi avatar Sep 24 '20 16:09 CodeMasterYi

If it works, please let me know and I will close the issue. Thanks.

CodeMasterYi avatar Sep 24 '20 16:09 CodeMasterYi

If it works, please let me know and I will close the issue. Thanks.

According to your method,The problem has been solved. The issue can close.Thanks for your help.

leojay-wang avatar Sep 25 '20 00:09 leojay-wang

When I use after the update, there is the problem:

PS D:\bamboo\bamboo-server> pyenv install 3.6.8
:: [Info] ::  Mirror: https://npm.taobao.org/mirrors/python/
pyenv-install: no definitions in local database

Please update the local database cache with `pyenv update'.

I hope you can help me in free time to see it. Thanks! @CodeMasterYi

yafeiaa avatar Jun 03 '22 05:06 yafeiaa

When I use after the update, there is the problem:

PS D:\bamboo\bamboo-server> pyenv install 3.6.8
:: [Info] ::  Mirror: https://npm.taobao.org/mirrors/python/
pyenv-install: no definitions in local database

Please update the local database cache with `pyenv update'.

I hope you can help me in free time to see it. Thanks! @CodeMasterYi

The current issue had been closed.

Maybe the author of the project will not notice your problem.

Maybe you should open a new issue.

leojay-wang avatar Jun 06 '22 07:06 leojay-wang