记一次安装python umysql模块的报错
作者:互联网
今天,在写一个python脚本的时候要用到数据库相关的umysql模块,但在引用的时候报没有此模块,第一反应就是去安装此模块,但是报没有找到pip命令。
#pip install umysql
-bash: pip: command not found
这很显然没有安装pip命令,所以又去安装pip
#yum -y install python-setuptools #easy_install pip
Searching for pip
Best match: pip 19.1
Processing pip-19.1-py2.6.egg
pip 19.1 is already the active version in easy-install.pth
Installing pip script to /usr/bin
Installing pip2.6 script to /usr/bin
Installing pip2 script to /usr/bin
Using /usr/lib/python2.6/site-packages/pip-19.1-py2.6.egg
Processing dependencies for pip
Finished processing dependencies for pip
至此,我再去执行pip install umysql时,依然报错,并且执行pip相关的所有命令都报语法错误:
后面发现是漏装了python-pip,在安装完python-pip时执行pip命令正常
标签:19.1,python,umysql,报错,usr,install,pip 来源: https://www.cnblogs.com/liangyou666/p/10784822.html