解決 biolinux-conda command not found 2018-05-04
問題描述
在biolinux中安裝miniconda3的過程中,預設方法或按如下方法配置環境變數後,發現conda不能呼叫,提示“conda command not found”
# 用vi/vim編輯器開啟.bashrc
vi .bashrc
# 在.bashrc檔案尾部追加下面的一行程式碼 export PATH="/home/username/miniconda3/bin:$PATH",儲存並退出
source ~/.bashrc
解決方法
方法一:
biolinux的shell預設為zsh,而上述配製環境變數時卻把其當做了bash,因此正確的配置方法如下:
# 用vi/vim編輯器開啟.zshrc
vi .zshrc
# 在.bashrc檔案尾部追加下面的一行程式碼 export PATH="/home/username/miniconda3/bin:$PATH",儲存並退出
source ~/.zshrc
方法二:
除了方法一,也可以通過將biolinux的預設shell由zsh修改為bash,同樣能解決問題,修改命令如下:chsh -s /bin/bash
重啟後生效
(關於shell的型別及修改可參考 http://roclinux.cn/?p=739)
相關文章
- 解決 command not found: expressExpress
- sqlplus: command not found解決SQL
- bash: lspci: command not found解決方法
- 解決bash: mysql: command not found的問題MySql
- Mac終端出現 brew command not found 解決Mac
- zabbix_get :command not found 解決辦法
- 解決shell指令碼錯誤$’r’ command not found指令碼
- -bash: XXX: command not found解決辦法
- Linux提示crontab command not found的解決方法Linux
- CentOS 7 命令 lsb_release: command not found 解決方案CentOS
- RHEL7 解決xclock的 bash: xclock: command not found…
- “command-not-found has crashed” 解決辦法 (*unsolved)
- pip: command not found
- mac mysql: command not foundMacMySql
- express: command not found.Express
- Mac -bash: mysql: command not foundMacMySql
- -bash :gradlew command not foundGradle
- bash: hadoop: command not foundHadoop
- 阿里雲伺服器Centos映象解決方案apt-get: command not found阿里伺服器CentOSapt-get
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- aix_ssh scp command not foundAI
- sudo: apt-get: command not foundapt-get
- centos 7 -bash: mysql: command not foundCentOSMySql
- 【Linux】git note -v command not foundLinuxGit
- AIX dtterm not found的解決AI
- 【linux報錯】-bash: xhost: command not foundLinux
- zsh: command not found: bee bee工具安裝
- "mkimage" command not found - U-Boot images will not be builtbootUI
- bash: ssh-copy-id: command not found...
- python virtualenv報錯-bash: virtualenv: command not foundPython
- PHP-fpm Linux 環境使用 exec 函式呼叫 FFmpeg,報錯 FFmpeg: command not found 的解決方法PHPLinux函式
- 解決Vue中”This dependency was not found”的方法Vue
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- Supervisor 解決 can't find command *
- JAVA IPMI Command time out 解決方法Java
- symfony 2 No route found for “GET /” 的解決方法
- Invalid bound statement (not found)錯誤解決