推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
oldbird
V2EX  ›  Python

anaconda 在内网怎么安装或更新包?

  •  
  •   oldbird · Sep 21, 2019 via Android · 4203 views
    This topic created in 2462 days ago, the information mentioned may be changed or developed.
    内网电脑无法连接互联网,需通过 u 盘拷入资料。
    4 replies    2019-09-22 16:48:04 +08:00
    kemistep
        1
    kemistep  
       Sep 21, 2019
    把包下载咯,本地安装咯

    下载 whl 文件,安装舒服点了
    xchaoinfo
        2
    xchaoinfo  
       Sep 21, 2019
    可以下载源文件,自己搭建一个简单的源来安装,不建议 pip 和 conda 混用管理包

    如果是企业版本的话,conda 本身是提供了一个内网 mirror 镜像的工具的
    sharoue
        3
    sharoue  
       Sep 22, 2019 via Android
    我也有这个问题。硬盘够的话可以一台机定期切换内外网直接 rsync pypi 和 anaconda 的官方源。但是没有选择性,现在 pypi 源膨胀的很快,估计 10t 都顶不了两年。还可以用 bandersnatch,白名单添加流行的包,黑名单添加不要的包和超大的包,可以选择做源。但是对于包的版本也没有选择性,必然所有版本全下,配置还很复杂。还有就是在外网机维护一个时常更新的 anaconda,然后需要时把整个文件夹往内网机器复制,也行。
    necomancer
        4
    necomancer  
       Sep 22, 2019
    proxychains,找台能连网的机器开 ssh 就行,用 ssh -D
    要不就用能联网机器开个 vpn
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2579 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 08:35 · PVG 16:35 · LAX 01:35 · JFK 04:35
    ♥ Do have faith in what you're doing.