Trying to install mysql-python: "No module named urllib3" -


i'm trying around on issue far nothing i've found has fixed it. not familiar python , i'm working else's script. on windows 10 (64-bit).

executing command: pip install mysql-python

and getting error:

traceback (most recent call last): file "c:\python27\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) file "c:\python27\lib\runpy.py", line 72, in _run_code exec code in run_globals file "c:\python27\scripts\pip.exe\__main__.py", line 5, in <module> file "c:\python27\lib\site-packages\pip\__init__.py", line 15, in <module> pip.vcs import git, mercurial, subversion, bazaar  # noqa file "c:\python27\lib\site-packages\pip\vcs\mercurial.py", line 9, in <module> pip.download import path_to_url file "c:\python27\lib\site-packages\pip\download.py", line 38, in <module> pip._vendor import requests, 6 file "c:\python27\lib\site-packages\pip\_vendor\requests\__init__.py", line 58, in <module> . import utils file "c:\python27\lib\site-packages\pip\_vendor\requests\utils.py", line 26, in <module> .compat import parse_http_list _parse_list_header file "c:\python27\lib\site-packages\pip\_vendor\requests\compat.py", line 7, in <module> .packages import chardet file "c:\python27\lib\site-packages\pip\_vendor\requests\packages\__init__.py", line 29, in <module> import urllib3 importerror: no module named urllib3 

the python module trying install require compile makes task harder newbie.

instead, recommend use pure-python module https://github.com/pymysql/pymysql -- easier install because not have compile it.

usually recommend trying work databases in python use sqlalchemy, because allows use single interface when deal database, 1 not depends on database-driver being used.

read answer python3 sqlalchemy pymysql connect string in order idea how use pymysql via sqlalchemy.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -