解決 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)
相關文章
- bash: lspci: command not found解決方法
- -bash: XXX: command not found解決辦法
- 解決bash: mysql: command not found的問題MySql
- Mac終端出現 brew command not found 解決Mac
- zabbix_get :command not found 解決辦法
- Linux提示crontab command not found的解決方法Linux
- “command-not-found has crashed” 解決辦法 (*unsolved)
- 解決shell指令碼錯誤$’r’ command not found指令碼
- -bash: id: command not found -bash: tty: command not found
- CentOS 7 命令 lsb_release: command not found 解決方案CentOS
- nodemon: command not found
- pip: command not found
- zsh:command not found: xxx
- mac mysql: command not foundMacMySql
- 阿里雲伺服器Centos映象解決方案apt-get: command not found阿里伺服器CentOSapt-get
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- Mac -bash: mysql: command not foundMacMySql
- sudo: apt-get: command not foundapt-get
- centos 7 -bash: mysql: command not foundCentOSMySql
- 【Linux】git note -v command not foundLinuxGit
- 【linux報錯】-bash: xhost: command not foundLinux
- python virtualenv報錯-bash: virtualenv: command not foundPython
- bash: ssh-copy-id: command not found...
- zsh: command not found: bee bee工具安裝
- Mac之telnet報錯-bash: telnet: command not foundMac
- PHP-fpm Linux 環境使用 exec 函式呼叫 FFmpeg,報錯 FFmpeg: command not found 的解決方法PHPLinux函式
- Supervisor 解決 can't find command *
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- JAVA IPMI Command time out 解決方法Java
- 解決Vue中”This dependency was not found”的方法Vue
- Error executing Jupyter command 'notebok': [Errno 'jupyter-notebok' not found] 2Error
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- VScode git無法使用,Error: command 'git.push' not found 原始碼管理無法使用的問題及解決方法VSCodeGitError原始碼
- android sqlite3 not found 解決總結AndroidSQLite
- CertPathValidatorException: Trust anchor for certification path not found解決方法ExceptionRust
- 【解決】io.lettuce.core.RedisCommandTimeoutException: Command timed outRedisException
- 報錯(已解決)Command timed out after no timeout