pip已經安裝,但是/usr/bin/pip: No such file or directory
解決方法
1.which pip /usr/local/bin/pip 2.pip -su: /usr/bin/pip: No such file or directory 3.type pip pip is hashed (/usr/bin/pip) So pip is definintely in /usr/local/bin/pip but it is been cached as in /usr/bin/pip, thanks to the Stackoverflow question, the solution is very simple: 4.hash -r When the cache is clear, pip is working again.
pip在usr/local/bin/pip
如果機器上已經有之前的pip,要先解除安裝
sudo apt-get remove python-pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
hash -r
相關推薦
pip已經安裝,但是/usr/bin/pip: No such file or directory
解決方法 1.which pip /usr/local/bin/pip 2.pip -su: /usr/bin/pip: No such file or directory 3.type pip pip is hashed (/usr/bin/pip) So p
git 原始碼安裝後報錯/usr/bin/git: No such file or directory
現象 今天原始碼安裝一個git後,執行git命令後報如下錯誤: $ git --version -bash: /usr/bin/git: No such file or directory 分析過程 開始我以為是PATH路徑的問題,檢查PATH路徑發現是正常的,而且找不到命令的報錯也不應該是
問題解決:安裝完ruby卻提示[/usr/bin/ruby: No such file or directory]
在linux(我用ubuntu)下,明明安裝好了ruby,輸入命令列ruby後,卻提示 -bash: /usr/bin/ruby: No such file or directory 解決問題之前,先確認一個情況,輸入命令 /usr/local/bin/ruby -
-bash: /usr/bin/yum: No such file or directory 更換yum源
一般是因為執行"rpm -aq|grep yum|xargs rpm -e --nodeps"命令之後將系統預設的yum功能刪除 我遇到這個問題時是為了解決紅帽7 yum沒註冊無法使用yum源的情況,所以就執行了上面刪除的命令 所以接下來我打算更換centos7的yu
"#!/usr/bin/python: No such file or director"引發的編碼問題
spa utf8 方法 文件頭 https span diff inux vi編輯器 問題描述 我自己寫了一個Python腳本,在Linux服務器和我的Mac上運行都報錯: ./build_system.py: line 1: #!/usr/bin/python: N
qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
問題:[email protected]:/home/xvv/program/opencvDemo1# qmake -v qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or dir
./bin/hdfs: line 319: /usr/lib/jvm/java/bin/java: No such file or directory
問題: Hadoop偽分散式配置,配置完core-site.xml 和 hdfs-site.xml後,執行命令後出現如下錯誤: 原因: 配置時,JDK的路徑照抄照搬網上的教程,導致錯誤 解決方法: 重新修改hadoop-env.sh中: export = #JAVA_H
qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory 解決方案
昨天晚上,第一次用qt,但在編譯時,遇到上述的問題,然後在網上查詢了很多資料,感覺別說的都有道理,但還是不太懂,不過弄了一個多小時後,終於搞定了。 解決方法:首先找到qmake的可執行檔案路徑,我的路徑是/usr/lib/i386-linux-gnu/qt5/bin,在這裡我用的是qt5,我估計
解決 Boost安裝:fatal error: bzlib.h: No such file or directory 問題
++ gpo sku fat .cpp post src lib thread 參考: How to install all the boost development libraries? 解決 Boost安裝:fatal error: bzlib.h: No such
hadoop:/bin/bash: /bin/java: No such file or directory
Stack trace: ExitCodeException exitCode=127 In HADOOP_HOME/libexec/hadoop-config.sh look for the if condition below # Attempt to set JAVA_H
Linux 指令碼 顯示 !/bin/bash No such file or directory 問題
經常用Notepad++ 編輯 shell指令碼,然後winscp傳到shell執行,經常出現如題所示的錯誤, 先cat -A 檔案路徑,發現結果如下圖 因為Windows下的編輯器在後面會產生\r\n的EOL,linux是\n,解決方法如下: 1、編輯,檔案格
_____[BUG]記錄一個jdk安裝錯誤 error: open of failed:No such file or directory
今天在一臺新機器, 採用rpm方式安裝jdk, rpm -ivh jdk-8u181-linux-i586.rpm 安裝過程發生了錯誤, 錯誤資訊包含大量的html相關資訊: error: open of <html> failed: No such f
離線安裝expat-2.0.1 ——安裝apr-util 遇到 expat.h: No such file or directory 的解決
在安裝apr-util-1.6.1 的過程中 ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config make 之後出現報錯 xml/ap
Linux裝置驅動程式安裝fatal error: linux/module.h: No such file or directory
在做Linux裝置驅動程式安裝實驗時,執行gcc -c mydev.c產生fatal error: linux/module.h: No such file or directory錯誤資訊 mydev.c程式碼如下: #ifndef __KERNEL__ #define
caffe安裝問題——fattal error nccl.h no such file or directory
問題 In file included from ./include/caffe/parallel.hpp:19:0, from ./include/caffe/caffe.hpp:13, from tools/ca
pyspider安裝失敗報FileNotFoundError: [Errno 2] No such file or directory: 'curl-config'
作業系統:CentOS6.9 64位 Python版本:3.6.2 安裝pyspider的時候報錯: [[email protected] software]# pip3 install pyspider Collecting pyspide
用hyperscan-python時,fatal error: Python.h: No such file or directory
1、centos7.3用hyperscan-python時報錯:fatal error: Python.h: No such file or directory 系統中沒有python.h的原因,是因為沒有安裝python的開發版,即Python-devel這個包,命
/root/hadoop/bin/hdfs: line 204: /opt/jdk/bin/java: No such file or directory /root/hadoop/bin/hdfs:
1 啟動叢集出現下列異常: /usr/bin/hadoop: line 320: /usr/lib/jvm/java-6-sun/bin/java: No such file or director
win10上用Python2.7處理文字,出錯IOError: [Errno 2] No such file or directory:如何解決???
# coding=utf-8 import os import jieba import sys import re import time import jieba.posseg as pseg sys.path.append("../") jieba.load_use
編譯核心,出現gcc: error: elf_i386: No such file or directory
CC arch/x86/mm/mmio-mod.o LD arch/x86/mm/mmiotrace.o LD arch/x86/mm/built-in.o CC arch/x86/crypto/crc32c-inte