V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2020-01-14 10:57:12 +08:00 · 8020 次点击
    这是一个创建于 1535 天前的主题,其中的信息可能已经有所发展或是发生改变。
    38 条回复    2020-05-06 10:47:10 +08:00
    LZSZ
        1
    LZSZ  
       2020-01-14 10:59:29 +08:00
    并没有
    itsneo1990
        2
    itsneo1990  
    OP
       2020-01-14 11:02:18 +08:00
    @LZSZ 北京电信访问 pypi.org ,使用 pip 服务都显示请求被拒绝
    LZSZ
        3
    LZSZ  
       2020-01-14 11:05:19 +08:00
    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
        4
    ronman  
       2020-01-14 11:06:07 +08:00 via Android
    这种不都是安装后立马换国内源吗?不被墙速度也感人啊
    youngce
        5
    youngce  
       2020-01-14 11:07:45 +08:00
    docker、pip、yum 上手第一件事,换成国内源
    zdnyp
        6
    zdnyp  
       2020-01-14 11:11:29 +08:00
    比较慢,还是能访问的。换豆瓣源。
    ccoming
        7
    ccoming  
       2020-01-14 11:16:34 +08:00
    广州电信,没问题,很快
    xratzh
        8
    xratzh  
       2020-01-14 11:19:42 +08:00
    @LZSZ 你这个是 IPV6 能通吧,V4 呢
    LZSZ
        9
    LZSZ  
       2020-01-14 11:24:53 +08:00
    @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
        10
    xratzh  
       2020-01-14 11:31:00 +08:00
    @LZSZ 嗯嗯,PYPI 国内源确实舒服很多
    CEBBCAT
        11
    CEBBCAT  
       2020-01-14 12:20:47 +08:00 via Android
    神 tm ping 通就行
    j717273419
        12
    j717273419  
       2020-01-14 12:26:01 +08:00 via Android
    welcome to China
    masker0817
        13
    masker0817  
       2020-01-14 12:43:19 +08:00 via Android
    @ronman 挂上代理速度很快
    SpencerCJH
        14
    SpencerCJH  
       2020-01-14 12:51:36 +08:00
    换源换源,不换源咋用啊
    smallyu
        15
    smallyu  
       2020-01-14 12:54:17 +08:00
    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
        16
    wangkun025  
       2020-01-14 12:59:30 +08:00
    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
        17
    thuang  
       2020-01-14 13:00:59 +08:00
    --- 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

    北京联通
    whwq2012
        18
    whwq2012  
       2020-01-14 13:09:29 +08:00 via Android   ❤️ 1
    就国内这个恶心的网络,就算不 q,也会龟速。。。还不如直接走代理。
    在中国寻求高速国际网络服务是否搞错了什么
    zuikren
        19
    zuikren  
       2020-01-14 13:12:52 +08:00 via Android
    pip --proxy http://127.0.0.1:7890
    chenqh
        20
    chenqh  
       2020-01-14 13:15:36 +08:00
    有个问题,国内有那个源 virtualenv 不失败的?
    raysonx
        21
    raysonx  
       2020-01-14 13:18:24 +08:00
    电信走 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
        22
    ps1aniuge  
       2020-01-14 16:00:43 +08:00
    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
        23
    xubiaosunny  
       2020-01-14 16:29:07 +08:00
    dns 污染了估计,我着 dns 解析的也是 127.0.0.1,公司网络是北京海淀 BGP。但腾讯云上正常。。。
    minami
        24
    minami  
       2020-01-14 16:56:43 +08:00   ❤️ 1
    中国奠信的外网 QoS 近两年越来越严重,扶墙都不好使,不知道是不是奠信舍不得买国际带宽
    cheng6563
        25
    cheng6563  
       2020-01-14 19:05:16 +08:00 via Android
    很奇怪?
    msg7086
        26
    msg7086  
       2020-01-14 21:17:34 +08:00
    @minami 国际带宽就是电信的呀,应该是对面机房舍不得买电信带宽吧……
    minami
        27
    minami  
       2020-01-14 22:42:20 +08:00
    @msg7086 #26 但是电信自己推出的国际飞车业务(搜“天翼极速智能宽带网站”)让人遐想啊(⊙o⊙)
    xchaoinfo
        28
    xchaoinfo  
       2020-01-14 23:01:44 +08:00
    南京电信可以访问,但是龟速,ping 丢包严重。
    msg7086
        29
    msg7086  
       2020-01-15 02:45:14 +08:00
    @minami 加速嘛,大概是把 cn2 拆来卖了……
    secsilm
        30
    secsilm  
       2020-01-15 07:35:01 +08:00
    我之前发现了,北京联通,参见 https://www.v2ex.com/t/637438#reply8

    但是发现昨天好了。

    另外我一直用的官方源,速度我觉得还可以。
    leido
        31
    leido  
       2020-01-15 09:17:41 +08:00
    四川电信秒开
    MaiKuraki
        32
    MaiKuraki  
       2020-01-15 09:25:58 +08:00
    一直是半墙状态
    chitanda
        33
    chitanda  
       2020-01-15 10:23:47 +08:00
    我发现,腾讯云会自动把各种源换成国内的
    zhu79
        34
    zhu79  
       2020-01-15 13:27:21 +08:00
    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
        35
    puzzle9  
       2020-01-15 15:05:19 +08:00
    ~  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
        36
    heart4lor  
       2020-01-15 15:57:14 +08:00
    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
        37
    exiaohao  
       2020-02-02 09:32:37 +08:00 via iPhone
    pypi 用 fastly 的 CDN 经常被关照,用国内源或者优化 fastly 的访问质量吧
    wondertx
        38
    wondertx  
       2020-05-06 10:47:10 +08:00
    ping 都没问题,是端口被墙了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4080 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:00 · PVG 09:00 · LAX 18:00 · JFK 21:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.