pip install urllib2 #failed [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:41:02

问题:

I am trying to install urllib2 in cmd console to import it from python 3.5. I am getting this error:

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\

回答1:

urllib2 is a built-in package in Python 2. You don't need to pip install it. Did you mean urllib3?



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!