python urllib3 pip install error linux -
i trying install urllib3 using pip , error posted @ bottom of message.
i have wrestled issue few days days trying many things have found online without success, posting here. unfortunately don't know quite enough know bits of have tried might relevant, here goes.
i want install urllib3 because trying create simple twitter bot based on various tutorials have found online, , regularly getting error: 'importerror: no module named urllib3'. though thought had installed urllib3 (via synaptic - says have).
prior this, attempting follow advice here https://urllib3.readthedocs.org/en/latest/security.html#pyopenssl because getting insecureplatformwarning
@ bottom of page, when trying bot working. (before attempting install urllib3 installed python-pip, following, using command: 'pip install pyopenssl ndg-httpsclient pyasn1' per instructions on page. appears have worked...
i see in error permissions denied/root statements after trying various things not sure how fix it, though think should simple. have tried uninstalling/re-installing various things. appreciate point in right direction..!
thanks again, ronf.
the error:
ronf@debian:~/downloads/twitterapistuff$ pip install urllib3 collecting urllib3 using cached urllib3-1.10.4-py2-none-any.whl installing collected packages: urllib3 exception: traceback (most recent call last): file "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main status = self.run(options, args) file "/usr/local/lib/python2.7/site-packages/pip/commands/install.py", line 297, in run root=options.root_path, file "/usr/local/lib/python2.7/site-packages/pip/req/req_set.py", line 622, in install **kwargs file "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 808, in install self.move_wheel_files(self.source_dir, root=root) file "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 1003, in move_wheel_files isolated=self.isolated, file "/usr/local/lib/python2.7/site-packages/pip/wheel.py", line 339, in move_wheel_files clobber(source, lib_dir, true) file "/usr/local/lib/python2.7/site-packages/pip/wheel.py", line 310, in clobber ensure_dir(destdir) file "/usr/local/lib/python2.7/site-packages/pip/utils/__init__.py", line 70, in ensure_dir os.makedirs(path) file "/usr/local/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) oserror: [errno 13] permission denied: '/usr/local/lib/python2.7/site-packages/urllib3-1.10.4.dist-info'
as indicated in last row, don't have enough permission execute command. try (i assume you're using ubuntu/debian):
sudo pip install urllib3
Comments
Post a Comment