bash: pip: command not found... 解决方法

下载安装
wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate

tar -axf pip-1.5.4.tar.gz
cd pip-1.5.4/
python setup.py install

安装完后,使用 pip -V 报错,如下:
bash: pip: command not found...
这时候怎么办呢??
做一个软连接即可:
首先查下安装路径:

find / -name pip

然做个软连接

ln -sv /usr/local/python/bin/pip /usr/bin/pip

做完就可以用了。
路径要根据你自己的进行改变。

原文地址:https://www.cnblogs.com/zhouxinfei/p/8410735.html

时间: 2024-07-30 20:33:46

bash: pip: command not found... 解决方法的相关文章

【转】bash: ssh: command not found解决方法(linux)

原文转自:http://www.cnblogs.com/ahauzyy/archive/2013/04/25/3043699.html 今天在搭建hadoop的开发环境中,用的是centsos6.0的操作系统,由于选安装时选的是最小安装.在配置Master无密码登录时,敲ssh命令时出现 1 -bash: ssh: command not found 最后在网上找到的解决方法为 1 yum -y install openssh-clients

bash: ifconfig: command not found解决方法

1.问题: #ifconfig bash: ifconfig: command not found 2.原因:非root用户的path中没有/sbin/ifconfig ,其它的命令也可以出现这种情况,解决的方法是一样的. # whereis ifconfig #ifconfig位置 ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz # echo $PATH /usr/kerberos/sbin:/usr/kerberos/bi

linux -bash: ipconfig: command not found 解决方法

问题: ipconfig: command not found [[email protected] root]# ipconfig -bash: ipconfig: command not found 方法: 1.安装好CentOS5.5后,ipconfig找不到那说明没有将ipconfig命令配置到环境变量. 2.测试下结果echo $PATH,果然/sbin这个主要目录不在PATH. [[email protected] network-scripts]# echo $PATH /usr/

-bash: java: command not found 解决方法

-bash: java: command not found 在卸载jdk之后,会报错 就是配置环境变量出了问题, JAVA_HOME=/usr/java/jdk1.8.0_25 PATH=$PATH:$JAVA_HOME/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar export  JAVA_HOME  PATH  CLASS

lsb_release: command not found 解决方法(转)

问题:通过lsb_release -a 是查看linux系统版本时报错,具体的解决办法如下: [[email protected] ~]# lsb_release -a-bash: lsb_release: command not found 解决方法:yum install redhat-lsb -y 安装完之后再查看版本信息: [[email protected] upload]# lsb_release -aLSB Version: :core-4.0-amd64:core-4.0-noa

3、Ora_Q3_bash: sqlplus: command not found 解决方法

bash: sqlplus: command not found 解决方法 环境变量已经配好,但是仍报错: # vi  .bash_profile # .bash_profile # Get the aliasesand functions if [ -f ~/.bashrc ];then . ~/.bashrc fi # User specificenvironment and startup programs PATH=$PATH:$HOME/bin #AddORACLE_SID ,ORAC

python安装locustio报错error: invalid command 'bdist_wheel'的解决方法

locust--scalable user load testing tool writen in Python(是用python写的.规模化.可扩展的测试性能的工具) 安装locustio需要的环境条件是:Python2.6+,但是不支持Python3. 今天在cmd里运行pip install locustio,报错提示:error: invalid command 'bdist_wheel'. 原因:pip和setuptools的版本较低. 解决方案:升级pip和setuptools. 一

升级10.11后使用CocoaPod出现-bash: pod: command not found 解决办法-备

升级10.11后,运行pod命令出现: -bash: pod: command not found 解决办法: sudo gem install -n /usr/local/bin cocoapods 之后pod命令可以使用了. 如果pod update / pod install 卡在: Updating local specs repositories 等待即可,或者 可以使用 “pod install --verbose --no-repo-update” 进行下载,原因可能x被墙. po

$ sudo python -m pip install pylint 出错解决方法

问题:在unbuntu执行$ sudo python -m pip install pylint出错解决方法支行以下命令sudo pip install pylint==1.9.3这样roboware_studio 也是可以跑python的 原文地址:https://www.cnblogs.com/dayspring/p/9764650.html