【发布时间】:2018-07-09 09:36:50
【问题描述】:
如: Can I install Django as offline in Windows 7? ...我正在尝试从文件安装 Django。
我的 RHEL 7 处于封闭网络中。从另一台计算机上,我从 https://github.com/django/django/releases 获取了 2.0.1 版本。
运行 install-command 会导致:
pip3.6 install django-2.0.1.tar.gz
Processing ./django-2.0.1.tar.gz
Collecting pytz (from Django==2.0.1)
Could not fetch URL https://pypi.python.org/simple/pytz/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777) - skipping
Could not find a version that satisfies the requirement pytz (from Django==2.0.1) (from versions: )
No matching distribution found for pytz (from Django==2.0.1)
错误对应的事实是,我的系统无法通过代理访问。如何在不需要访问外部世界的情况下进行安装?
可能的重复:Python Packages Offline Installation 没有提到 pytz-package
【问题讨论】: