简体   繁体   English

python pip用于查找模块的URL是什么

[英]What are the URL python pip will use to find the modules

I need to install python3, pip, django and some other python modules in a system which has no access to internet as of now. 我需要在目前无法访问互联网的系统中安装python3,pip,django和其他一些python模块。 However, I will be given access for few really required urls for few days. 但是,几天后我将获得一些真正必需的URL的访问权限。 I need to raise a firewall requests for those URLs. 我需要针对这些URL提出防火墙请求。 Please help with the list of urls. 请提供网址列表帮助。

You need to open up your firewall to the download locations of all the packages you need to install. 您需要将防火墙打开到需要安装的所有软件包的下载位置。

PyPI is a metadata service that also provides storage for indexed packages. PyPI是元数据服务,还为索引包提供存储。 But it is not necessary that the package will be hosted on PyPI, the download location could be anywhere on the internet. 但是该程序包不必托管在PyPI上,下载位置可以在Internet上的任何位置。

As a start open pypi.python.org, and as individual installations fail you can check the PyPI page for the correct download location and add it to your firewall. 首先,打开pypi.python.org,由于个别安装失败,您可以在PyPI页面上查看正确的下载位置,并将其添加到防火墙中。

As an alternative to this you can also setup your own PyPI mirror 作为替代方案,您还可以设置自己的PyPI 镜像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM