pip install urllib2 #失败

pip install urllib2 #failed

我正在尝试在 cmd 控制台中安装 urllib2 以从 python 3.5 导入它。 我收到此错误:

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\

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