python
  • urllib2
  • 2017-09-14 141 views 0 likes 
    0

    我想在cmd控制檯中安裝urllib2從python 3.5導入它。 我收到此錯誤:pip install urllib2 #failed

    pip install urllib2 
    

    Failed building wheel for urllib2

    Command "c:\anaconda\python.exe -u -c "import setuptools, tokenize;file='C:\Users\NA401134\AppData\Local\Temp\pip-build-7meqhp18\urllib2\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\NA401134\AppData\Local\Temp\pip-it4nmmne-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\NA401134\AppData\Local\Temp\pip-build-7meqhp18\urllib2\

    +0

    您使用的是什麼版本的'pip'? – sadmicrowave

    回答

    1

    urllib2是在Python 2內置包你不需要pip install它。你的意思是urllib3

    +0

    我使用python 3.5,所以它會是urllib3 – anitasp

    相關問題