python - win7 64位,安装urllib老是报错?

查看:181
本文介绍了python - win7 64位,安装urllib老是报错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

系统:win7 64位
python 3.6.1 32位

错误如下:

D:\jianguoyun\pythonProgrames3                                                    
λ pip3 install urllib                                                             
Collecting urllib                                                                 
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/da/97/7ed06ae96106088e13e
88fd6f91c17fb58786d705b851f82c991664b08db/urllib-1.21.1.tar.gz (226kB)            
    100% |████████████████████████████████| 235kB 1.4MB/s                         
    Complete output from command python setup.py egg_info:                        
    Traceback (most recent call last):                                            
      File "<string>", line 1, in <module>                                        
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-8yb3sik_\urllib\setup.p
y", line 191                                                                      
        s.connect((base64.b64decode(rip), 017620))                                
                                               ^                                  
    SyntaxError: invalid token                                                    
                                                                                  
    ----------------------------------------                                      
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1\A
ppData\Local\Temp\pip-build-8yb3sik_\urllib\                                      

请各位看看该怎么弄呢?
多谢!

解决方案

urllib不是自带的吗? 为什么还要装?

或者你试下urllib3

pip install urllib3

这篇关于python - win7 64位,安装urllib老是报错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆