推荐学习书目
› 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
itsneo1990
V2EX  ›  Python

pypi 被墙了

  •  
  •   itsneo1990 · Jan 14, 2020 · 9666 views
    This topic created in 2503 days ago, the information mentioned may be changed or developed.
    38 replies  •  2020-05-06 10:47:10 +08:00
    LZSZ
    LZSZ
    Jan 14, 2020
    1
    并没有
    itsneo1990
    itsneo1990
    OP
    Jan 14, 2020
    2
    @LZSZ 北京电信访问 pypi.org ,使用 pip 服务都显示请求被拒绝
    LZSZ
    LZSZ
    Jan 14, 2020
    3
    C:\Windows\system32>ping pypi.org

    正在 Ping pypi.org [2a04:4e42:200::223] 具有 32 字节的数据:
    来自 2a04:4e42:200::223 的回复: 时间=181ms
    来自 2a04:4e42:200::223 的回复: 时间=181ms
    来自 2a04:4e42:200::223 的回复: 时间=181ms
    来自 2a04:4e42:200::223 的回复: 时间=181ms

    2a04:4e42:200::223 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
    往返行程的估计时间(以毫秒为单位):
    最短 = 181ms,最长 = 181ms,平均 = 181ms
    ronman
    ronman
    Jan 14, 2020 via Android
    4
    这种不都是安装后立马换国内源吗?不被墙速度也感人啊
    ynkkdev
    ynkkdev
    Jan 14, 2020
    5
    docker、pip、yum 上手第一件事,换成国内源
    zdnyp
    zdnyp
    Jan 14, 2020
    6
    比较慢,还是能访问的。换豆瓣源。
    ccoming
    ccoming
    Jan 14, 2020
    7
    广州电信,没问题,很快
    xratzh
    xratzh
    Jan 14, 2020
    8
    @LZSZ 你这个是 IPV6 能通吧,V4 呢
    LZSZ
    LZSZ
    Jan 14, 2020
    9
    @xratzh
    C:\Windows\system32>ping 151.101.192.223

    正在 Ping 151.101.192.223 具有 32 字节的数据:
    来自 151.101.192.223 的回复: 字节=32 时间=161ms TTL=50
    来自 151.101.192.223 的回复: 字节=32 时间=170ms TTL=50
    来自 151.101.192.223 的回复: 字节=32 时间=161ms TTL=50
    来自 151.101.192.223 的回复: 字节=32 时间=163ms TTL=50

    151.101.192.223 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
    往返行程的估计时间(以毫秒为单位):
    最短 = 161ms,最长 = 170ms,平均 = 163ms


    可以的,不过我一般都是换成阿里源
    xratzh
    xratzh
    Jan 14, 2020
    10
    @LZSZ 嗯嗯,PYPI 国内源确实舒服很多
    CEBBCAT
    CEBBCAT
    Jan 14, 2020 via Android
    11
    神 tm ping 通就行
    j717273419
    j717273419
    Jan 14, 2020 via Android
    12
    welcome to China
    masker0817
    masker0817
    Jan 14, 2020 via Android
    13
    @ronman 挂上代理速度很快
    0dJ6Tu8Za734L89T
    0dJ6Tu8Za734L89T
    Jan 14, 2020
    14
    换源换源,不换源咋用啊
    smallyu
    smallyu
    Jan 14, 2020
    15
    C:\Users\admin>ping pypi.org

    正在 Ping pypi.org [151.101.0.223] 具有 32 字节的数据:
    来自 151.101.0.223 的回复: 字节=32 时间=232ms TTL=47
    请求超时。
    请求超时。
    请求超时。

    151.101.0.223 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 1,丢失 = 3 (75% 丢失),
    往返行程的估计时间(以毫秒为单位):
    最短 = 232ms,最长 = 232ms,平均 = 232ms
    wangkun025
    wangkun025
    Jan 14, 2020
    16
    ping pypi.org
    PING pypi.org (151.101.192.223): 56 data bytes
    Request timeout for icmp_seq 0
    64 bytes from 151.101.192.223: icmp_seq=1 ttl=54 time=240.039 ms
    Request timeout for icmp_seq 2
    Request timeout for icmp_seq 3
    Request timeout for icmp_seq 4
    Request timeout for icmp_seq 5
    64 bytes from 151.101.192.223: icmp_seq=6 ttl=54 time=247.354 ms
    64 bytes from 151.101.192.223: icmp_seq=7 ttl=54 time=245.940 ms
    Request timeout for icmp_seq 8
    Request timeout for icmp_seq 9
    64 bytes from 151.101.192.223: icmp_seq=10 ttl=54 time=257.788 ms
    64 bytes from 151.101.192.223: icmp_seq=11 ttl=54 time=278.374 ms
    Request timeout for icmp_seq 12
    Request timeout for icmp_seq 13
    ^C
    --- pypi.org ping statistics ---
    15 packets transmitted, 5 packets received, 66.7% packet loss
    round-trip min/avg/max/stddev = 240.039/253.899/278.374/13.509 ms
    thuang
    thuang
    Jan 14, 2020
    17
    --- pypi.org ping statistics ---
    10 packets transmitted, 10 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 61.614/67.035/81.010/6.281 ms

    北京联通
    syahd
    syahd
    Jan 14, 2020 via Android❤️1
    18
    就国内这个恶心的网络,就算不 q,也会龟速。。。还不如直接走代理。
    在中国寻求高速国际网络服务是否搞错了什么
    zuikren
    zuikren
    Jan 14, 2020 via Android
    19
    pip --proxy http://127.0.0.1:7890
    simple2025
    simple2025
    Jan 14, 2020
    20
    有个问题,国内有那个源 virtualenv 不失败的?
    raysonx
    raysonx
    Jan 14, 2020
    21
    电信走 ipv4 的丢包率特别高,大概 50%:
    Host Loss% Snt Last Avg Best Wrst StDev
    1. **** 0.0% 20 1.6 7.5 1.6 89.3 19.3
    2. **** 0.0% 20 10.1 7.7 4.0 10.1 1.5
    3. 60.235.178.201 0.0% 20 3.8 5.2 3.5 9.6 1.7
    4. 60.235.177.97 25.0% 20 10.3 10.0 9.0 10.8 0.6
    5. 202.97.39.5 0.0% 20 28.0 28.6 26.7 33.9 1.8
    6. 202.97.57.157 15.0% 20 26.0 26.0 24.9 30.9 1.4
    7. 202.97.90.57 0.0% 20 41.2 39.7 37.8 41.8 1.2
    8. 202.97.51.62 44.4% 19 237.6 230.4 225.4 244.5 6.1
    9. ae-0.r30.tokyjp05.jp.bb.gin.ntt.net 61.1% 19 236.3 244.3 229.1 308.3 28.4
    10. ae-2.r00.tokyjp08.jp.bb.gin.ntt.net 63.2% 19 238.0 236.8 234.6 238.3 1.3
    11. ae-0.fastly.tokyjp08.jp.bb.gin.ntt.net 5.3% 19 273.4 275.6 272.1 277.8 1.4
    12. 151.101.128.223 50.0% 19 227.1 227.5 227.0 229.4 0.7

    走 IPv6 绕美国,丢包 25%:
    1. **** 0.0% 21 3.8 4.5 1.7 26.9 5.3
    2. **** 0.0% 21 5.6 8.6 5.4 29.8 5.1
    3. 240e:e:2002:703::2 0.0% 21 6.4 6.0 3.9 12.2 2.4
    4. 240e:e:2002:101::2 0.0% 21 10.6 10.5 8.8 12.4 0.9
    5. 240e::21:47:4b02 0.0% 21 28.2 28.5 25.8 31.3 1.6
    6. 240e:0:a::c9:1cb5 0.0% 21 27.6 27.4 26.1 30.0 0.9
    7. 240e:0:a::c9:5a38 75.0% 21 33.1 32.5 29.1 33.8 1.9
    8. 240e:0:a::cb:5fc9 42.9% 21 150.0 151.2 146.9 163.3 5.8
    9. be-208-pe01.seattle.wa.ibone.comcast.net 28.6% 21 144.4 145.3 143.7 147.2 1.2
    10. be-10846-cr01.seattle.wa.ibone.comcast.net 80.0% 21 146.4 147.0 146.3 147.8 0.8
    11. be-2311-pe11.seattle.wa.ibone.comcast.net 78.9% 20 144.0 145.3 144.0 145.9 0.9
    12. 2001:559::4a2 25.0% 20 163.3 165.1 162.0 188.8 6.6
    13. 2a04:4e42:200::223 20.0% 20 180.7 180.7 179.2 182.1 0.9
    ps1aniuge
    ps1aniuge
    Jan 14, 2020
    22
    ping.exe pypi.org

    正在 Ping pypi.org [127.0.0.1] 具有 32 字节的数据:
    来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
    来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
    来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
    来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128

    127.0.0.1 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
    往返行程的估计时间(以毫秒为单位):
    最短 = 0ms,最长 = 0ms,平均 = 0ms
    xubiaosunny
    xubiaosunny
    Jan 14, 2020
    23
    dns 污染了估计,我着 dns 解析的也是 127.0.0.1,公司网络是北京海淀 BGP。但腾讯云上正常。。。
    minami
    minami
    Jan 14, 2020❤️1
    24
    中国奠信的外网 QoS 近两年越来越严重,扶墙都不好使,不知道是不是奠信舍不得买国际带宽
    cheng6563
    cheng6563
    Jan 14, 2020 via Android
    25
    很奇怪?
    msg7086
    msg7086
    Jan 14, 2020
    26
    @minami 国际带宽就是电信的呀,应该是对面机房舍不得买电信带宽吧……
    minami
    minami
    Jan 14, 2020
    27
    @msg7086 #26 但是电信自己推出的国际飞车业务(搜“天翼极速智能宽带网站”)让人遐想啊(⊙o⊙)
    xchaoinfo
    xchaoinfo
    Jan 14, 2020
    28
    南京电信可以访问,但是龟速,ping 丢包严重。
    msg7086
    msg7086
    Jan 15, 2020
    29
    @minami 加速嘛,大概是把 cn2 拆来卖了……
    secsilm
    secsilm
    Jan 15, 2020
    30
    我之前发现了,北京联通,参见 https://www.v2ex.com/t/637438#reply8

    但是发现昨天好了。

    另外我一直用的官方源,速度我觉得还可以。
    leido
    leido
    Jan 15, 2020
    31
    四川电信秒开
    MaiKuraki
    MaiKuraki
    Jan 15, 2020
    32
    一直是半墙状态
    chitanda
    chitanda
    Jan 15, 2020
    33
    我发现,腾讯云会自动把各种源换成国内的
    zhu79
    zhu79
    Jan 15, 2020
    34
    PING pypi.org (151.101.192.223) 56(84) bytes of data.
    64 bytes from 151.101.192.223 (151.101.192.223): icmp_seq=3 ttl=50 time=210 ms
    64 bytes from 151.101.192.223 (151.101.192.223): icmp_seq=5 ttl=50 time=208 ms
    64 bytes from 151.101.192.223 (151.101.192.223): icmp_seq=6 ttl=50 time=208 ms
    64 bytes from 151.101.192.223 (151.101.192.223): icmp_seq=9 ttl=50 time=209 ms
    64 bytes from 151.101.192.223 (151.101.192.223): icmp_seq=10 ttl=50 time=208 ms
    64 bytes from 151.101.192.223 (151.101.192.223): icmp_seq=13 ttl=50 time=208 ms
    64 bytes from 151.101.192.223 (151.101.192.223): icmp_seq=17 ttl=50 time=208 ms
    ^C
    --- pypi.org ping statistics ---
    18 packets transmitted, 7 received, 61% packet loss, time 17015ms
    rtt min/avg/max/mdev = 208.443/208.917/210.519/0.838 ms

    江苏,没有问题
    puzzle9
    puzzle9
    Jan 15, 2020
    35
    ~  ping pipy.org
    PING pipy.org (207.148.248.143) 56(84) bytes of data.
    64 bytes from 207.148.248.143 (207.148.248.143): icmp_seq=1 ttl=49 time=245 ms
    64 bytes from 207.148.248.143 (207.148.248.143): icmp_seq=4 ttl=49 time=246 ms
    64 bytes from 207.148.248.143 (207.148.248.143): icmp_seq=5 ttl=49 time=245 ms
    64 bytes from 207.148.248.143 (207.148.248.143): icmp_seq=6 ttl=49 time=246 ms
    64 bytes from 207.148.248.143 (207.148.248.143): icmp_seq=8 ttl=49 time=245 ms
    ^C
    --- pipy.org ping statistics ---
    9 packets transmitted, 5 received, 44.4444% packet loss, time 11064ms
    rtt min/avg/max/mdev = 244.681/245.328/245.721/0.351 ms
    heart4lor
    heart4lor
    Jan 15, 2020
    36
    syf@Cthulhu:/mnt/c/Users/syf$ curl myip.ipip.net
    当前 IP:114.229.83.229 来自于:中国 江苏 镇江 电信
    syf@Cthulhu:/mnt/c/Users/syf$ ping pypi.org
    PING pypi.org (151.101.64.223) 56(84) bytes of data.
    64 bytes from 151.101.64.223 (151.101.64.223): icmp_seq=1 ttl=53 time=249 ms
    64 bytes from 151.101.64.223 (151.101.64.223): icmp_seq=5 ttl=53 time=240 ms
    64 bytes from 151.101.64.223 (151.101.64.223): icmp_seq=6 ttl=53 time=242 ms
    64 bytes from 151.101.64.223 (151.101.64.223): icmp_seq=10 ttl=53 time=227 ms
    64 bytes from 151.101.64.223 (151.101.64.223): icmp_seq=16 ttl=53 time=250 ms
    64 bytes from 151.101.64.223 (151.101.64.223): icmp_seq=20 ttl=53 time=238 ms
    64 bytes from 151.101.64.223 (151.101.64.223): icmp_seq=21 ttl=53 time=238 ms
    64 bytes from 151.101.64.223 (151.101.64.223): icmp_seq=22 ttl=53 time=229 ms
    64 bytes from 151.101.64.223 (151.101.64.223): icmp_seq=23 ttl=53 time=238 ms
    ^C
    --- pypi.org ping statistics ---
    24 packets transmitted, 9 received, 62% packet loss, time 23048ms
    rtt min/avg/max/mdev = 227.429/239.513/250.716/7.357 ms
    exiaohao
    exiaohao
    Feb 2, 2020 via iPhone
    37
    pypi 用 fastly 的 CDN 经常被关照,用国内源或者优化 fastly 的访问质量吧
    wondertx
    wondertx
    May 6, 2020
    38
    ping 都没问题,是端口被墙了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2013 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 88ms · UTC 14:07 · PVG 22:07 · LAX 06:07 · JFK 09:07
    ♥ Do have faith in what you're doing.