Home  >  Q&A  >  body text

python - Win7 64-bit, installing urllib always reports an error?

System: win7 64-bit
python 3.6.1 32-bit

The error is as follows:

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\                                      

Please tell me how to do it?
Thank you!

代言代言2686 days ago979

reply all(1)I'll reply

  • 为情所困

    为情所困2017-06-12 09:22:15

    urllibIsn’t it built-in? Why do you need to install it?

    Or you can try urllib3

    pip install urllib3

    reply
    0
  • Cancelreply