如: 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
答案 0 :(得分:0)
下载pytz
要求。例如,下载方向盘from PyPi。
然后在Django之前安装滚轮
pip install pytz-2017.3-py2.py3-none-any.whl
pip install django-2.0.1.tar.gz
关于重复问题的this answer表明,您可以通过运行下载Django及其要求:
pip download django