问题描述
我经常需要为我的 Python 项目离线工作.如何下载 PyCharm 文档以供离线使用?
Often I need to work offline for my python projects. How can I download PyCharm documentation for offline use?
推荐答案
PyCharm 中有一个选项:转到设置/工具/Python 外部文档";但是由于 PyCharm
错误,这似乎很久没有处理本地文件了.
There's an option in PyCharm: go "Settings/Tools/Python External Documentation"; BUT it seems thishas not been working with local files for a long time due to a PyCharm
bug.
您可以启动一个本地服务器并假装它是一个 docs.python.org 站点.
You can start a local server and pretend it to be a docs.python.org site.
获取文档存档
将存档解压到完全命名为3.6"的文件夹
Unpack archive to folder named exactly "3.6"
编辑您的hosts文件:
C:\Windows\System32\drivers\etc\hosts 或 /etc/hosts
127.0.0.1 docs.python.org
::1 docs.python.org
重启
运行服务器.转到3.6"文件夹所在的目录并运行:
Run server. Go to the dir where "3.6" folder is located and run:
python -m http.server 80 --bind 127.0.0.1
Linux 使用sudo python -m http.server 80 --bind 127.0.0.1
这篇关于pycharm 特定版本的离线文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!