Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install希望支持阿里云的源 #131

Closed
paulxu1314 opened this issue Mar 6, 2025 · 5 comments
Closed

pip install希望支持阿里云的源 #131

paulxu1314 opened this issue Mar 6, 2025 · 5 comments

Comments

@paulxu1314
Copy link

AWS机器资源,使用pip install 无法下载oss的资源,会报超时问题,希望后续能将package放在已知的源上

@tiankongdeguiji
Copy link
Collaborator

在AWS的哪个地域呢?

@eric-gecheng
Copy link
Collaborator

请问使用的AWS机器是哪个区域的, 具体遇到的报错是怎样的?

@paulxu1314
Copy link
Author

请问使用的AWS机器是哪个区域的, 具体遇到的报错是怎样的?

  1. 目前平台只能看到时aws的数据中心,时区显示为shanghai,具体真实的地域无法获取;
  2. 最后一步报错:pip install tzrec==0.7.4+20250306.6043884 -f http://tzrec.oss-cn-beijing.aliyuncs.com/release/nightly/repo.html --trusted-host tzrec.oss-cn-beijing.aliyuncs.com

Looking in indexes: https://nexus.dev.sheincorp.cn/repository/shein_python_public/simple
Looking in links: http://tzrec.oss-cn-beijing.aliyuncs.com/release/nightly/repo.html
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fe95d3fc950>, 'Connection to tzrec.oss-cn-beijing.aliyuncs.com timed out. (connect timeout=15)')': /release/nightly/repo.html
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fe95d3fe010>, 'Connection to tzrec.oss-cn-beijing.aliyuncs.com timed out. (connect timeout=15)')': /release/nightly/repo.html
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fe95d3ff390>, 'Connection to tzrec.oss-cn-beijing.aliyuncs.com timed out. (connect timeout=15)')': /release/nightly/repo.html
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fe95d404790>, 'Connection to tzrec.oss-cn-beijing.aliyuncs.com timed out. (connect timeout=15)')': /release/nightly/repo.html
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fe95d405a50>, 'Connection to tzrec.oss-cn-beijing.aliyuncs.com timed out. (connect timeout=15)')': /release/nightly/repo.html
ERROR: Could not find a version that satisfies the requirement tzrec==0.7.4+20250306.6043884 (from versions: none)
ERROR: No matching distribution found for tzrec==0.7.4+20250306.6043884

@tiankongdeguiji
Copy link
Collaborator

目前依赖一些版本包如graphlearn,pyfg没有在pypi上,短期没有release包在pypi上的计划。海外region可以尝试阿里云PAI-DLC训练模型,也是可以正常安装tzrec的包的。

@eric-gecheng
Copy link
Collaborator

服务器在无网络连接时, 可以改用pip download的方式将python wheel包下载, 然后拷贝到服务器安装。
例如以下命令可以下载tzrec的whl安装包:
pip download tzrec==0.7.4+20250306.6043884 -f http://tzrec.oss-cn-beijing.aliyuncs.com/release/nightly/repo.html --trusted-host tzrec.oss-cn-beijing.aliyuncs.com --no-index --no-deps --dest=.
tzrec的其他依赖, 请参考源代码里的requirements.txt, 全部下载后拷贝至服务器进行离线安装。

你也可以在其他联网的服务器上下载tzrec的docker镜像, 然后使用docker save命令导出, 拷贝到服务器上docker load加载即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants