🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 169 (from laksa026)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

đź“„
INDEXABLE
âś…
CRAWLED
2 months ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH2.1 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://stackoverflow.com/questions/35246386/conda-command-not-found
Last Crawled2026-02-03 21:11:46 (2 months ago)
First Indexed2017-09-21 02:00:56 (8 years ago)
HTTP Status Code200
Meta Titlepython - Conda command not found - Stack Overflow
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
This question shows research effort; it is useful and clear 232 Save this question. Show activity on this post. I've installed Miniconda and have added the environment variable export PATH="/home/username/miniconda3/bin:$PATH" to my .bashrc and .bash_profile , but still can't run any Conda commands in my terminal. Am I missing another step in my setup? I'm using Z shell (executable zsh ) by the way. asked Feb 6, 2016 at 20:58 9 This answer is useful 344 Save this answer. Show activity on this post. If you're using zsh and it has not been set up to read .bashrc, you need to add the Miniconda directory to the zsh shell PATH environment variable. Add this to your .zshrc : export PATH= "/home/username/miniconda/bin:$PATH" Make sure to replace /home/username/miniconda with your actual path . Save, exit the terminal and then reopen the terminal. conda command should work. answered Feb 6, 2016 at 21:39 12 Comments Instead of exiting and reopening, Using source ~/.zshrc will do 2016-02-06T22:12:48.063Z+00:00 I tried this, but I still get an error when trying to install stuff CondaIOError: Missing write permissions in: /anaconda 2017-11-13T13:38:45.307Z+00:00 It works! But the path has a slight difference. export PATH="/Users/victorzhang/anaconda2/bin:$PATH" , the path beginning is /Users/ , instead of /home/ still thank you @olivrg 2018-01-13T14:56:05.563Z+00:00 For those who don't know: copy the command in the .zshrc file that will be located in your /User/<yourusername>/ directory. 2020-10-19T12:36:36.69Z+00:00 nano ~/.bashrc - then in the end add export PATH="/home/username/miniconda3/bin:$PATH" Make check if its miniconda or miniconda3 source ~./.bashrc 2021-09-18T10:01:15.757Z+00:00 | This answer is useful 105 Save this answer. Show activity on this post. If you have the PATH in your .bashrc file and are still getting conda: command not found Your terminal might not be looking for the Bash file. Type bash in the terminal to ensure you are in Bash and then try: conda --version answered Jun 2, 2017 at 1:12 Kenan 14.2k 9 gold badges 47 silver badges 56 bronze badges 6 Comments thanks for this! But what is the reason we have to type bash? 2019-12-18T16:00:28.41Z+00:00 im not 100% sure but I think it's to let your command prompt read the bashrc file 2019-12-18T16:36:16.737Z+00:00 Yes, the start script for conda was added inside your .bashrc file during installation, so you need to start bash shell to start the conda 2021-01-12T00:55:14.17Z+00:00 why isn't this already in my path? Why do I need to manually add it? :/ 2022-11-08T23:29:27.273Z+00:00 when you installed conda you might have select NO to add to path since it's the default. 2022-11-09T18:35:49.277Z+00:00 | This answer is useful 70 Save this answer. Show activity on this post. To initialize your shell, run the below code: source ~/anaconda3/etc/profile.d/conda.sh conda activate Your_env It worked for me. I got the solution from the below link https://www.codegrepper.com/code-[“CommandNotFoundError : Your shell has not been properly configured to use 'conda activate'.][1]examples/shell/CommandNotFoundError%3A+Your+shell+has+not+been+properly+configured+to+use+%27conda+activate%27.+To+initialize+your+shell%2C+run answered Nov 13, 2020 at 5:32 thrinadhn 2,683 27 silver badges 36 bronze badges 4 Comments Don't forget to replace anaconda3 with miniconda3 if you're using miniconda. 2022-09-11T12:04:20.537Z+00:00 This works only on current terminal 2023-01-31T06:38:49.57Z+00:00 This is the one that has worked successfully without any hassle in my case. I was facing the same problem in my WSL2 Ubuntu and Desktop Ubuntu 24.04.1 LTS both. I changed anaconda3 with miniconda3 as I was using miniconda. At last, I used conda init . After that, it initializes the Conda env in any newly opened terminal automatically like I wanted. 2024-10-10T17:02:16.177Z+00:00 Place this line in your ~/.bashrc file, then source ~/.bashrc or close and open the terminal so that you don't have to run this line every time you open a new terminal. 2025-09-28T22:00:13.157Z+00:00 This answer is useful 55 Save this answer. Show activity on this post. Maybe you need to execute "source ~/.bashrc" answered Jun 3, 2017 at 8:38 dew 685 5 silver badges 2 bronze badges 3 Comments Can you explain what does this command actually do? Thanks! 2021-05-09T20:16:19.097Z+00:00 @KaranSharma I believe it resets the environment variables for your profile. If you recently installed Anaconda, that file was edited by the installer with the new env variables, but have not been loaded for conda or other utilities. I might be wrong, I'm new to this whole thing. 2022-05-14T15:36:00.39Z+00:00 @Karan Sharma: The mysterious " sourcing " explained 2023-04-28T16:35:33.337Z+00:00 This answer is useful 47 Save this answer. Show activity on this post. Sometimes, if you don't restart your terminal after you have also installed Anaconda, it gives this error. Close your terminal window and restart it. It worked for me now! answered Oct 21, 2017 at 18:41 Sanreet 479 4 silver badges 2 bronze badges 1 Comment Also instead of close/open terminal, could source ~/.bashrc OR . ~/.barshrc if bash is a shell you are using (to see your shell echo $0 ) 2021-12-07T20:56:25.71Z+00:00 This answer is useful 34 Save this answer. Show activity on this post. For those experiencing issues after upgrading to macOS v10.15 (Catalina). Short version: # 1a) Use tool: conda-prefix-replacement - # Restores: Desktop -> Relocated Items -> Security -> anaconda3 curl -L https://repo.anaconda.com/pkgs/misc/cpr-exec/cpr-0.1.1-osx-64.exe -o cpr && chmod +x cpr ./cpr rehome ~/anaconda3 # or if fails #./cpr rehome ~/anaconda3 --old-prefix /Anaconda3 source ~/anaconda3/bin/activate # 1b) Alternatively - reinstall Anaconda - # brew cask install anaconda # 2) conda init conda init zsh # or # conda init Further reading - Anaconda blog post and GitHub discussion . answered Oct 29, 2019 at 20:55 xgMz 3,364 2 gold badges 32 silver badges 23 bronze badges Comments This answer is useful 25 Save this answer. Show activity on this post. conda: command not found Try adding the below line to your .bashrc file: export PATH=~/anaconda3/bin:$PATH Then try: conda --version to see the version. And then for it to take effect conda init answered May 27, 2021 at 8:29 Comments This answer is useful 18 Save this answer. Show activity on this post. Maybe you should type add this to your .bashrc or .zshrc export PATH= "/anaconda3/bin" : $PATH It worked for me. answered Feb 11, 2019 at 7:16 Gray 855 9 silver badges 17 bronze badges 2 Comments On ubuntu i needed to refer to home so i used: export PATH="~/anaconda3/bin":$PATH and it worked 2021-03-21T12:25:59.05Z+00:00 echo $0 to see what shell if it is .bashrc or .zshrc OR ls -ld ~/.* to see which one is already there. 2021-12-07T21:06:50.31Z+00:00 This answer is useful 11 Save this answer. Show activity on this post. If you are using Mac and have installed Conda with Homebrew then you need to run this command to export the path: export PATH= "$PATH:/opt/homebrew/anaconda3/bin" answered Nov 16, 2022 at 12:27 Qazi Ammar 1,604 3 gold badges 20 silver badges 42 bronze badges Comments This answer is useful 8 Save this answer. Show activity on this post. Execute the following command after installing and adding to the path source ~/.bashrc where source is a bash shell built-in command that executes the content of the file passed as argument, in the current shell. It runs during boot up automatically. CKE 1,638 19 gold badges 22 silver badges 33 bronze badges answered Sep 10, 2018 at 6:24 Comments This answer is useful 6 Save this answer. Show activity on this post. I had the same issue. I just closed and reopened the terminal, and it worked. That was because I installed Anaconda with the terminal open. answered Aug 15, 2018 at 17:01 RaphaëlR 562 7 silver badges 9 bronze badges Comments This answer is useful 4 Save this answer. Show activity on this post. I am using a WSL system. In my case, for the conda command to be added to the path, and persist, I had to do the following: First: vim ~/.bashrc This will open the .bashrc file using Vim . You should go to the bottom of the file using the arrow keys, click i to toggle the insert mode and paste: export PATH="$PATH:/home/userName/miniconda3/bin" . After that, save and close Vim using :wq . (if you are not comfortable using Vim, you can use the nano command instead) nano ~/.bashrc Second: source ~/.bashrc Third: Close and open the terminal! This should work for everyone. To test if it is working, try: conda --version answered Apr 14, 2023 at 13:20 Comments This answer is useful 4 Save this answer. Show activity on this post. If you are using Linux: After installing Anaconda from the .sh file (which you can download from https://www.spyder-ide.org/ ): Step 1: Activate the environment in the terminal by entering the below command. source ~/anaconda3/bin/activate Step 2: Type spyder in the terminal. You can get the Spyder IDE. spyder answered Jan 10, 2023 at 5:28 Comments This answer is useful 4 Save this answer. Show activity on this post. I faced this issue on my Mac after updating Conda. The solution was to run the Conda mini installer on top of the existing Conda setup. curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o ~/miniconda3.sh bash ~/miniconda3.sh -bfp ~/miniconda3 On Linux, you can use: curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o ~/miniconda3.sh bash ~/miniconda3.sh -bfp ~/miniconda3 For other versions, you can go to https://repo.continuum.io/miniconda/ For details, check: Conda command not found after running conda update package #1364 answered Sep 30, 2017 at 14:53 Jeevan 8,822 14 gold badges 53 silver badges 69 bronze badges Comments This answer is useful 3 Save this answer. Show activity on this post. I had to run the following command to activate the shell: eval "$(/home/username/anaconda3/bin/conda shell.bash hook)" answered May 21, 2021 at 17:53 Data Mastery 2,165 4 gold badges 31 silver badges 84 bronze badges Comments This answer is useful 2 Save this answer. Show activity on this post. export PATH="~/anaconda3/bin":$PATH answered Feb 18, 2021 at 6:04 1 Comment That is a bit terse. In what context? Where should it be applied? 2023-04-28T20:25:10.137Z+00:00 This answer is useful 2 Save this answer. Show activity on this post. Make sure that you are installing the Anaconda binary that is compatible with your kernel. I was in the same situation. It turned out I have an x64_86 CPU and was trying to install a 64-bit POWER8 installer. You can find out the same for your CPU by using the following command. It gives you a basic information about a computer's software and hardware. uname -a https://www.anaconda.com/download/#linux The page in the link above displays two different types of 64-bit installers: 64-bit (x86) installer and 64-bit (POWER8) installer. answered Oct 14, 2017 at 13:29 Taani 71 1 silver badge 3 bronze badges Comments This answer is useful 1 Save this answer. Show activity on this post. The brute-force way could be if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/root/miniconda3/etc/profile.d/conda.sh" ]; then . "/root/miniconda3/etc/profile.d/conda.sh" else export PATH= "/root/miniconda3/bin:$PATH" fi fi Then initialize and test Conda. conda init conda -V Which is what Conda tries to do. Take a look at the end of ~/.bashrc with less ~/.bashrc or with cat ~/.bashrc answered May 12, 2021 at 2:04 Echo9k 594 6 silver badges 9 bronze badges Comments This answer is useful 1 Save this answer. Show activity on this post. Do the same thing as the suggestion given by bash console, but pay attention that there are some errors in the suggestion (the file path format is incorrect). Paste these two commands in the Bash console for Windows: echo ". C:/Users/mingm/Anaconda3/etc/profile.d/conda.sh" >> ~/.bashrc and echo "conda activate" >> ~/.bashrc After having pasted these two commands, exit the Bash console, reload it and then activate the virtual environment by entering "conda activate your_env_name". answered May 29, 2021 at 10:05 Mingming 402 5 silver badges 10 bronze badges Comments This answer is useful 1 Save this answer. Show activity on this post. It can be a silly mistake. Make sure that you use anaconda3 instead of anaconda in the export path if you installed it so. answered Jun 10, 2021 at 7:08 Comments This answer is useful 1 Save this answer. Show activity on this post. This worked on an M1 Mac : To get the user name: echo $USER Then substitute my_username with the correct one. source /Users/my_username/opt/anaconda3/ bin /activate answered Oct 25, 2022 at 8:38 Comments This answer is useful 1 Save this answer. Show activity on this post. By default, Anaconda and Miniconda will put necessary command alias to the .bashrc file file. All you have to do is to reload added alias inside ~/.bashrc using this command: source ~/.bashrc answered Jan 28, 2023 at 6:49 Ali Akhtari 1,312 3 gold badges 22 silver badges 43 bronze badges 1 Comment This works. Alternatively, if you are using zsh, you need to source ~/.zshrc 2023-01-31T08:20:19.19Z+00:00 This answer is useful 1 Save this answer. Show activity on this post. on Windows, select "Anaconda Prompt" instead of the terminal. answered Nov 8, 2024 at 5:07 Jaider 15.1k 5 gold badges 83 silver badges 88 bronze badges Comments This answer is useful 0 Save this answer. Show activity on this post. This worked for me on CentOS and miniconda3. Find out which shell you are using echo $0 conda init bash (could be conda init zsh if you are using zsh , etc.) - this adds a path to ~/.bashrc Reload command line sourc ~/.bashrc OR . ~/.bashrc answered Dec 7, 2021 at 21:21 frmbelz 2,693 32 silver badges 31 bronze badges Comments This answer is useful 0 Save this answer. Show activity on this post. I have encountered this problem lately and I have found a solution that worked for me. It is possible that your current user might not have permissions to anaconda directory, so check if you can read/write there, and if not, then change the files owner by using chown . answered Jan 24, 2022 at 14:31 Comments This answer is useful 0 Save this answer. Show activity on this post. For Conda > 4.4 follow this: echo ". /home/ubuntu/miniconda2/etc/profile.d/conda.sh" >> ~/.bashrc Then you need to reload user bash, so you need to log out: exit And then log again. answered Jun 8, 2020 at 6:35 jobima 5,950 1 gold badge 23 silver badges 18 bronze badges 1 Comment What do you mean by "reload user bash" ? Reload the content of file .bashrc ? Or something to do with file /usr/bash ? Or something else? 2023-04-28T20:10:55.48Z+00:00 This answer is useful 0 Save this answer. Show activity on this post. For me uninstalling and reinstalling miniconda did the trick. I did lose all my existing repos but at least the command works now. answered Nov 30, 2023 at 9:02 markemus 1,824 18 silver badges 25 bronze badges 1 Comment lol............ 2024-05-24T03:01:00.88Z+00:00 This answer is useful 0 Save this answer. Show activity on this post. I installed it with sudo, which made it available only to root user. Installing without sudo fixed it and now I can access conda as I wanted answered Oct 15, 2024 at 18:36 Comments This answer is useful -1 Save this answer. Show activity on this post. on conda prompt try conda init powershell answered Feb 14, 2023 at 14:11 fharlup 59 1 silver badge 5 bronze badges 1 Comment If conda isn't already in the path, how can they run that? 2024-04-07T08:24:57.397Z+00:00 This answer is useful -1 Save this answer. Show activity on this post. Mac OS X: cd /Users/USER_NAME/anaconda3/bin && ./activate answered Nov 28, 2020 at 15:15 Ryan Cocuzzo 3,229 8 gold badges 42 silver badges 69 bronze badges Comments Start asking to get answers Find the answer to your question by asking. Ask question Explore related questions See similar questions with these tags.
Markdown
# ![site logo](https://stackoverflow.com/Content/Img/SE-logo75.png) By clicking “Sign up”, you agree to our [terms of service](https://stackoverflow.com/legal/terms-of-service/public) and acknowledge you have read our [privacy policy](https://stackoverflow.com/legal/privacy-policy). # OR Already have an account? [Log in](https://stackoverflow.com/users/login) [Skip to main content](https://stackoverflow.com/questions/35246386/conda-command-not-found#content) [Stack Overflow](https://stackoverflow.com/) 1. [About](https://stackoverflow.co/) 2. Products 3. [For Teams](https://stackoverflow.co/internal/) 1. [Stack Internal Implement a knowledge platform layer to power your enterprise and AI tools.](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) 2. [Stack Data Licensing Get access to top-class technical expertise with trusted & attributed content.](https://stackoverflow.co/data-licensing/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) 3. [Stack Ads Connect your brand to the world’s most trusted technologist communities.](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) 4. [Releases Keep up-to-date on features we add to Stack Overflow and Stack Internal.](https://stackoverflow.blog/releases/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=releases) 5. [About the company](https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) [Visit the blog](https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) 1. ### [current community](https://stackoverflow.com/) - [Stack Overflow](https://stackoverflow.com/) [help](https://stackoverflow.com/help) [chat](https://chat.stackoverflow.com/?tab=explore) - [Meta Stack Overflow](https://meta.stackoverflow.com/) ### your communities [Sign up](https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F35246386%2Fconda-command-not-found) or [log in](https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F35246386%2Fconda-command-not-found) to customize your list. ### [more stack exchange communities](https://stackexchange.com/sites) [company blog](https://stackoverflow.blog/) 2. [Log in](https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F35246386%2Fconda-command-not-found) 3. [Sign up](https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F35246386%2Fconda-command-not-found) # Let's set up your homepage Select a few topics you're interested in: python javascript c\# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: - javascript - python - java - c\# - php - android - html - jquery - c++ - css - ios - sql - mysql - r - reactjs - node.js - arrays - c - asp.net - json - python-3.x - .net - ruby-on-rails - sql-server - swift - django - angular - objective-c - excel - pandas - angularjs - regex - typescript - ruby - linux - ajax - iphone - vba - xml - laravel - spring - asp.net-mvc - database - wordpress - string - flutter - postgresql - mongodb - wpf - windows - xcode - amazon-web-services - bash - git - oracle-database - spring-boot - dataframe - azure - firebase - list - multithreading - docker - vb.net - react-native - eclipse - algorithm - powershell - macos - visual-studio - numpy - image - forms - scala - function - vue.js - performance - twitter-bootstrap - selenium - winforms - kotlin - loops - dart - express - sqlite - hibernate - matlab - python-2.7 - shell - rest - apache - entity-framework - android-studio - csv - maven - linq - qt - dictionary - unit-testing - asp.net-core - facebook - apache-spark - tensorflow - file - swing - class - unity-game-engine - sorting - date - authentication - go - symfony - t-sql - opencv - matplotlib - .htaccess - google-chrome - for-loop - datetime - codeigniter - perl - http - validation - sockets - google-maps - object - uitableview - xaml - oop - visual-studio-code - if-statement - cordova - ubuntu - web-services - email - android-layout - github - spring-mvc - elasticsearch - kubernetes - selenium-webdriver - ms-access - ggplot2 - user-interface - parsing - pointers - google-sheets - c++11 - security - machine-learning - google-apps-script - ruby-on-rails-3 - templates - flask - nginx - variables - exception - sql-server-2008 - gradle - debugging - tkinter - delphi - listview - jpa - asynchronous - haskell - web-scraping - jsp - pdf - ssl - amazon-s3 - google-cloud-platform - testing - xamarin - jenkins - wcf - batch-file - generics - npm - ionic-framework - network-programming - unix - recursion - google-app-engine - mongoose - visual-studio-2010 - .net-core - android-fragments - assembly - animation - math - svg - rust - session - intellij-idea - hadoop - join - curl - winapi - django-models - laravel-5 - next.js - url - heroku - http-redirect - tomcat - inheritance - google-cloud-firestore - webpack - gcc - image-processing - swiftui - keras - asp.net-mvc-4 - logging - dom - matrix - pyspark - actionscript-3 - button - post - optimization - firebase-realtime-database - jquery-ui - cocoa - xpath - iis - web - d3.js - javafx - firefox - xslt - internet-explorer - caching - select - asp.net-mvc-3 - opengl - events - asp.net-web-api - plot - dplyr - encryption - magento - stored-procedures - search - amazon-ec2 - ruby-on-rails-4 - memory - multidimensional-array - canvas - audio - random - jsf - vector - redux - cookies - input - facebook-graph-api - flash - indexing - xamarin.forms - arraylist - ipad - cocoa-touch - data-structures - video - model-view-controller - azure-devops - serialization - apache-kafka - jdbc - razor - awk - woocommerce - routes - mod-rewrite - servlets - excel-formula - beautifulsoup - filter - iframe - docker-compose - design-patterns - aws-lambda - text - visual-c++ - django-rest-framework - cakephp - mobile - android-intent - struct - react-hooks - methods - groovy - mvvm - lambda - ssh - time - checkbox - ecmascript-6 - grails - google-chrome-extension - installation - cmake - sharepoint - shiny - spring-security - jakarta-ee - plsql - android-recyclerview - core-data - types - sed - meteor - android-activity - bootstrap-4 - activerecord - websocket - replace - graph - group-by - scikit-learn - vim - file-upload - boost - junit - memory-management - sass - async-await - import - deep-learning - error-handling - eloquent - dynamic - dependency-injection - soap - silverlight - layout - apache-spark-sql - charts - deployment - browser - gridview - svn - while-loop - google-bigquery - vuejs2 - highcharts - dll - ffmpeg - view - foreach - makefile - plugins - redis - c\#-4.0 - reporting-services - jupyter-notebook - unicode - merge - reflection - https - server - google-maps-api-3 - twitter - oauth-2.0 - extjs - terminal - axios - pip - split - cmd - pytorch - encoding - django-views - collections - database-design - hash - netbeans - automation - data-binding - ember.js - build - tcp - pdo - sqlalchemy - apache-flex - entity-framework-core - concurrency - command-line - spring-data-jpa - printing - react-redux - java-8 - lua - html-table - neo4j - ansible - service - jestjs - mysqli - enums - parameters - flexbox - material-ui - module - promise - visual-studio-2012 - outlook - web-applications - uwp - firebase-authentication - webview - jquery-mobile - utf-8 - datatable - python-requests - parallel-processing - colors - drop-down-menu - scipy - scroll - tfs - hive - count - syntax - ms-word - twitter-bootstrap-3 - ssis - fonts - rxjs - constructor - file-io - google-analytics - paypal - three.js - powerbi - graphql - cassandra - discord - graphics - compiler-errors - gwt - react-router - socket.io - backbone.js - solr - memory-leaks - url-rewriting - datatables - nlp - terraform - oauth - datagridview - drupal - zend-framework - oracle11g - knockout.js - triggers - interface - neural-network - django-forms - casting - angular-material - jmeter - linked-list - google-api - path - timer - arduino - django-templates - orm - windows-phone-7 - proxy - directory - parse-platform - visual-studio-2015 - cron - conditional-statements - push-notification - functional-programming - primefaces - pagination - model - jar - xamarin.android - hyperlink - uiview - vbscript - visual-studio-2013 - google-cloud-functions - azure-active-directory - gitlab - jwt - download - swift3 - sql-server-2005 - process - rspec - configuration - pygame - properties - callback - combobox - windows-phone-8 - linux-kernel - safari - scrapy - emacs - permissions - x86 - clojure - scripting - raspberry-pi - scope - io - azure-functions - compilation - expo - responsive-design - mongodb-query - nhibernate - angularjs-directive - reference - bluetooth - request - binding - architecture - dns - playframework - 3d - pyqt - version-control - discord.js - doctrine-orm - package - f\# - rubygems - get - sql-server-2012 - autocomplete - tree - openssl - datepicker - kendo-ui - jackson - yii - controller - grep - nested - xamarin.ios - static - null - transactions - statistics - datagrid - active-directory - dockerfile - uiviewcontroller - webforms - sas - discord.py - computer-vision - phpmyadmin - notifications - duplicates - pycharm - mocking - youtube - yaml - nullpointerexception - menu - blazor - sum - plotly - bitmap - visual-studio-2008 - asp.net-mvc-5 - floating-point - css-selectors - yii2 - stl - android-listview - electron - jsf-2 - time-series - cryptography - ant - character-encoding - hashmap - stream - msbuild - asp.net-core-mvc - sdk - google-drive-api - jboss - selenium-chromedriver - joomla - devise - navigation - cuda - cors - frontend - anaconda - background - multiprocessing - binary - pyqt5 - camera - iterator - linq-to-sql - mariadb - onclick - android-jetpack-compose - ios7 - microsoft-graph-api - android-asynctask - rabbitmq - tabs - amazon-dynamodb - environment-variables - laravel-4 - uicollectionview - insert - linker - xsd - coldfusion - console - continuous-integration - upload - textview - ftp - opengl-es - operating-system - macros - mockito - localization - formatting - xml-parsing - json.net - type-conversion - vuejs3 - data.table - kivy - timestamp - integer - calendar - segmentation-fault - android-ndk - prolog - char - drag-and-drop - crash - jasmine - dependencies - automated-tests - geometry - azure-pipelines - fortran - android-gradle-plugin - itext - sprite-kit - mfc - header - attributes - nosql - firebase-cloud-messaging - format - nuxt.js - odoo - db2 - jquery-plugins - event-handling - julia - jenkins-pipeline - leaflet - annotations - flutter-layout - nestjs - keyboard - postman - arm - textbox - stripe-payments - visual-studio-2017 - gulp - libgdx - uikit - synchronization - timezone - azure-web-app-service - dom-events - wso2 - xampp - google-sheets-formula - crystal-reports - namespaces - aggregation-framework - android-emulator - uiscrollview - swagger - jvm - sequelize.js - com - chart.js - snowflake-cloud-data-platform - subprocess - geolocation - webdriver - html5-canvas - garbage-collection - sql-update - centos - dialog - concatenation - numbers - widget - qml - tuples - set - java-stream - mapreduce - ionic2 - smtp - windows-10 - android-edittext - rotation - nuget - spring-data - modal-dialog - radio-button - doctrine - http-headers - grid - sonarqube - lucene - xmlhttprequest - listbox - initialization - switch-statement - internationalization - components - boolean - apache-camel - google-play - gdb - serial-port - ios5 - ldap - return - youtube-api - pivot - eclipse-plugin - latex - frameworks - tags - containers - c++17 - subquery - github-actions - embedded - dataset - asp-classic - foreign-keys - label - uinavigationcontroller - delegates - copy - google-cloud-storage - struts2 - migration - protractor - base64 - uibutton - find - queue - sql-server-2008-r2 - arguments - composer-php - append - jaxb - stack - tailwind-css - zip - cucumber - autolayout - ide - entity-framework-6 - iteration - popup - r-markdown - windows-7 - vb6 - airflow - g++ - clang - ssl-certificate - hover - jqgrid - range - gmail Next You’ll be prompted to create an account to view your personalized homepage. 1. 1. [Home](https://stackoverflow.com/) 2. [Questions](https://stackoverflow.com/questions) 3. [AI Assist](https://stackoverflow.com/ai-assist) 4. [Tags](https://stackoverflow.com/tags) 5. [Challenges](https://stackoverflow.com/beta/challenges) 6. [Chat](https://chat.stackoverflow.com/?tab=explore) 7. [Articles](https://stackoverflow.blog/contributed?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=so-blog&utm_content=experiment-articles) 8. [Users](https://stackoverflow.com/users) 9. [Companies](https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) 10. [Collectives]() 11. Communities for your favorite technologies. [Explore all Collectives](https://stackoverflow.com/collectives-all) 2. Stack Internal Stack Overflow for Teams is now called **Stack Internal**. Bring the best of human thought and AI automation together at your work. [Try for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) 3. [Stack Internal]() 4. Bring the best of human thought and AI automation together at your work. [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) ##### Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. [Learn more about Collectives](https://stackoverflow.com/collectives) **Stack Internal** Knowledge at work Bring the best of human thought and AI automation together at your work. [Explore Stack Internal](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact-popover) # [Conda command not found](https://stackoverflow.com/questions/35246386/conda-command-not-found) [Ask Question](https://stackoverflow.com/questions/ask) Asked 10 years ago Modified [1 year, 2 months ago](https://stackoverflow.com/questions/35246386/conda-command-not-found?lastactivity "2024-11-08 05:07:25Z") Viewed 971k times This question shows research effort; it is useful and clear 232 Save this question. Show activity on this post. I've installed [Miniconda](https://en.wikipedia.org/wiki/Anaconda_\(Python_distribution\)) and have added the environment variable `export PATH="/home/username/miniconda3/bin:$PATH"` to my *[.bashrc](https://en.wikipedia.org/wiki/Bash_\(Unix_shell\)#Legacy-compatible_Bash_startup_example)* and *[.bash\_profile](https://en.wikipedia.org/wiki/Bash_\(Unix_shell\)#Legacy-compatible_Bash_startup_example)*, but still can't run any Conda commands in my terminal. Am I missing another step in my setup? I'm using [Z shell](https://en.wikipedia.org/wiki/Z_shell) (executable `zsh`) by the way. - [python](https://stackoverflow.com/questions/tagged/python "show questions tagged 'python'") - [zsh](https://stackoverflow.com/questions/tagged/zsh "show questions tagged 'zsh'") - [anaconda](https://stackoverflow.com/questions/tagged/anaconda "show questions tagged 'anaconda'") - [miniconda](https://stackoverflow.com/questions/tagged/miniconda "show questions tagged 'miniconda'") [Share](https://stackoverflow.com/q/35246386 "Short permalink to this question") Share a link to this question Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this question](https://stackoverflow.com/posts/35246386/edit) Follow Follow this question to receive notifications [edited Apr 28, 2023 at 15:08](https://stackoverflow.com/posts/35246386/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges asked Feb 6, 2016 at 20:58 [![olivrg's user avatar](https://i.sstatic.net/ZV2Ai.png?s=64)](https://stackoverflow.com/users/5736786/olivrg) [olivrg](https://stackoverflow.com/users/5736786/olivrg) 6,54333 gold badges1818 silver badges1919 bronze badges 9 - 4 Did you try with full path `/home/username/miniconda3/bin/conda`? Mike Müller – [Mike Müller](https://stackoverflow.com/users/837534/mike-m%C3%BCller "86,092 reputation") 2016-02-06 21:01:04 +00:00 [Commented Feb 6, 2016 at 21:01](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment58206628_35246386) - 3 And your `zsh` is set up to read `.bashrc` (I doubt it, it's called `._bash_rc` for a reason)? By default `zsh` reads `.zprofile` and `.zshrc`, instead (plus `.zlogin` for login shells). dhke – [dhke](https://stackoverflow.com/users/3191557/dhke "15,498 reputation") 2016-02-06 21:02:04 +00:00 [Commented Feb 6, 2016 at 21:02](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment58206641_35246386) - I've tried the full path /home/username/miniconda3/bin/conda. Unfortunately, it didn't work. olivrg – [olivrg](https://stackoverflow.com/users/5736786/olivrg "6,543 reputation") 2016-02-06 21:13:49 +00:00 [Commented Feb 6, 2016 at 21:13](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment58206869_35246386) - @dhke It is set up to read .bashrc. I have no issue with RVM olivrg – [olivrg](https://stackoverflow.com/users/5736786/olivrg "6,543 reputation") 2016-02-06 21:17:14 +00:00 [Commented Feb 6, 2016 at 21:17](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment58206952_35246386) - 1 why isn't this already in my path? Why do I need to manually add it? :/ Charlie Parker – [Charlie Parker](https://stackoverflow.com/users/1601580/charlie-parker "6,284 reputation") 2022-11-08 23:29:22 +00:00 [Commented Nov 8, 2022 at 23:29](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment131289581_35246386) \| [Show **4** more comments](https://stackoverflow.com/questions/35246386/conda-command-not-found "Expand to show all comments on this post") ## 30 Answers 30 Sorted by: [Reset to default](https://stackoverflow.com/questions/35246386/conda-command-not-found?answertab=scoredesc#tab-top) This answer is useful 344 Save this answer. Show activity on this post. If you're using zsh and it has not been set up to read .bashrc, you need to add the Miniconda directory to the zsh shell PATH environment variable. Add this to your `.zshrc`: ``` Copyexport PATH="/home/username/miniconda/bin:$PATH" ``` Make sure to **replace** `/home/username/miniconda` with **your actual path**. Save, exit the terminal and then reopen the terminal. `conda` command should work. [Share](https://stackoverflow.com/a/35246794 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this answer](https://stackoverflow.com/posts/35246794/edit) Follow Follow this answer to receive notifications [edited Sep 17, 2016 at 20:41](https://stackoverflow.com/posts/35246794/revisions "show all edits to this post") [![Gabriel Florit's user avatar](https://www.gravatar.com/avatar/a7214acdea146fcd74caf6290c233722?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/64372/gabriel-florit) [Gabriel Florit](https://stackoverflow.com/users/64372/gabriel-florit) 2,90811 gold badge2222 silver badges3737 bronze badges answered Feb 6, 2016 at 21:39 [![olivrg's user avatar](https://i.sstatic.net/ZV2Ai.png?s=64)](https://stackoverflow.com/users/5736786/olivrg) [olivrg](https://stackoverflow.com/users/5736786/olivrg) 6,54333 gold badges1818 silver badges1919 bronze badges Sign up to request clarification or add additional context in comments. ## 12 Comments Add a comment [![](https://www.gravatar.com/avatar/00f2a3f2624a47edc48464d4929a7508?s=48&d=identicon&r=PG)](https://stackoverflow.com/users/1389898/dlmeetei) dlmeetei [dlmeetei](https://stackoverflow.com/users/1389898/dlmeetei) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment58207917_35246794) Instead of exiting and reopening, Using `source ~/.zshrc` will do 2016-02-06T22:12:48.063Z+00:00 41 Reply - Copy link [![](https://i.sstatic.net/HkbYt.png?s=64)](https://stackoverflow.com/users/205521/thomas-ahle) Thomas Ahle [Thomas Ahle](https://stackoverflow.com/users/205521/thomas-ahle) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment81481897_35246794) I tried this, but I still get an error when trying to install stuff `CondaIOError: Missing write permissions in: /anaconda` 2017-11-13T13:38:45.307Z+00:00 1 Reply - Copy link [![](https://i.sstatic.net/dYxHZ.jpg?s=64)](https://stackoverflow.com/users/6201599/m-bonjour) M.Bonjour [M.Bonjour](https://stackoverflow.com/users/6201599/m-bonjour) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment83464319_35246794) It works! But the path has a slight difference. `export PATH="/Users/victorzhang/anaconda2/bin:$PATH"`, the path beginning is `/Users/`, instead of `/home/` still thank you @olivrg 2018-01-13T14:56:05.563Z+00:00 2 Reply - Copy link [![](https://www.gravatar.com/avatar/ee0a06aae715eab1ca1506dcb40aae83?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/3567704/bpz) bpz [bpz](https://stackoverflow.com/users/3567704/bpz) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment113923916_35246794) For those who don't know: copy the command in the `.zshrc` file that will be located in your `/User/<yourusername>/` directory. 2020-10-19T12:36:36.69Z+00:00 1 Reply - Copy link [![](https://lh4.googleusercontent.com/-PdL1quil2Hs/AAAAAAAAAAI/AAAAAAAAAMQ/xtulrhwqIZI/s48-rj/photo.jpg)](https://stackoverflow.com/users/10042411/vinay-verma) Vinay Verma [Vinay Verma](https://stackoverflow.com/users/10042411/vinay-verma) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment122367771_35246794) `nano ~/.bashrc` - then in the end add `export PATH="/home/username/miniconda3/bin:$PATH"` Make check if its miniconda or miniconda3 `source ~./.bashrc` 2021-09-18T10:01:15.757Z+00:00 1 Reply - Copy link Add a comment \| Show 7 more comments This answer is useful 105 Save this answer. Show activity on this post. If you have the PATH in your .bashrc file and are still getting ``` conda: command not found ``` Your terminal might not be looking for the Bash file. Type `bash` in the terminal to ensure you are in Bash and then try: `conda --version` [Share](https://stackoverflow.com/a/44319368 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/44319368/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 16:34](https://stackoverflow.com/posts/44319368/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Jun 2, 2017 at 1:12 [![Kenan's user avatar](https://i.sstatic.net/KAcWh.png?s=64)](https://stackoverflow.com/users/6031995/kenan) [Kenan](https://stackoverflow.com/users/6031995/kenan) 14\.2k99 gold badges4747 silver badges5656 bronze badges ## 6 Comments Add a comment [![](https://www.gravatar.com/avatar/225362ee09ee8c6382c528eeb0451854?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/3399468/patti-jane) patti\_jane [patti\_jane](https://stackoverflow.com/users/3399468/patti-jane) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment104980815_44319368) thanks for this! But what is the reason we have to type bash? 2019-12-18T16:00:28.41Z+00:00 2 Reply - Copy link [![](https://i.sstatic.net/KAcWh.png?s=64)](https://stackoverflow.com/users/6031995/kenan) Kenan [Kenan](https://stackoverflow.com/users/6031995/kenan) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment104982084_44319368) im not 100% sure but I think it's to let your command prompt read the bashrc file 2019-12-18T16:36:16.737Z+00:00 1 Reply - Copy link [![](https://www.gravatar.com/avatar/b348e9908c85491b284f0d993cca7b75?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/4702298/vyacheslav-tsivina) Vyacheslav Tsivina [Vyacheslav Tsivina](https://stackoverflow.com/users/4702298/vyacheslav-tsivina) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment116119748_44319368) Yes, the start script for conda was added inside your .bashrc file during installation, so you need to start bash shell to start the conda 2021-01-12T00:55:14.17Z+00:00 2 Reply - Copy link [![](https://i.sstatic.net/2B6rV.png?s=64)](https://stackoverflow.com/users/1601580/charlie-parker) Charlie Parker [Charlie Parker](https://stackoverflow.com/users/1601580/charlie-parker) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment131289583_44319368) why isn't this already in my path? Why do I need to manually add it? :/ 2022-11-08T23:29:27.273Z+00:00 0 Reply - Copy link [![](https://i.sstatic.net/KAcWh.png?s=64)](https://stackoverflow.com/users/6031995/kenan) Kenan [Kenan](https://stackoverflow.com/users/6031995/kenan) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment131308436_44319368) when you installed conda you might have select NO to add to path since it's the default. 2022-11-09T18:35:49.277Z+00:00 0 Reply - Copy link Add a comment \| Show 1 more comment This answer is useful 70 Save this answer. Show activity on this post. To initialize your shell, run the below code: ``` Copy ``` It worked for me. I got the solution from the below link <https://www.codegrepper.com/code-%5B%E2%80%9CCommandNotFoundError>: Your shell has not been properly configured to use 'conda activate'.\]\[1\]examples/shell/CommandNotFoundError%3A+Your+shell+has+not+been+properly+configured+to+use+%27conda+activate%27.+To+initialize+your+shell%2C+run [Share](https://stackoverflow.com/a/64815977 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/64815977/edit) Follow Follow this answer to receive notifications [edited Apr 12, 2024 at 11:05](https://stackoverflow.com/posts/64815977/revisions "show all edits to this post") answered Nov 13, 2020 at 5:32 [![thrinadhn's user avatar](https://i.sstatic.net/nBc6W.png?s=64)](https://stackoverflow.com/users/5836700/thrinadhn) [thrinadhn](https://stackoverflow.com/users/5836700/thrinadhn) 2,6832727 silver badges3636 bronze badges ## 4 Comments Add a comment [![](https://i.sstatic.net/hLRYH.jpg?s=64)](https://stackoverflow.com/users/7781396/ari) Ari [Ari](https://stackoverflow.com/users/7781396/ari) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment130108070_64815977) Don't forget to replace anaconda3 with miniconda3 if you're using miniconda. 2022-09-11T12:04:20.537Z+00:00 5 Reply - Copy link [![](https://www.gravatar.com/avatar/9bc86a4cb0ae796957c874c68db62c76?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/11258185/jonye-jin) jonye.\_.jin [jonye.\_.jin](https://stackoverflow.com/users/11258185/jonye-jin) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment132860520_64815977) This works only on current terminal 2023-01-31T06:38:49.57Z+00:00 0 Reply - Copy link [![](https://lh3.googleusercontent.com/-vPG0sZtRzIc/AAAAAAAAAAI/AAAAAAAAAGg/Slx5bI6kx8k/s48-rj/photo.jpg)](https://stackoverflow.com/users/13301597/md-fahim-bin-amin) Md. Fahim Bin Amin [Md. Fahim Bin Amin](https://stackoverflow.com/users/13301597/md-fahim-bin-amin) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment139430621_64815977) This is the one that has worked successfully without any hassle in my case. I was facing the same problem in my WSL2 Ubuntu and Desktop Ubuntu 24.04.1 LTS both. I changed `anaconda3` with `miniconda3` as I was using miniconda. At last, I used `conda init`. After that, it initializes the Conda env in any newly opened terminal automatically like I wanted. 2024-10-10T17:02:16.177Z+00:00 0 Reply - Copy link [![](https://i.sstatic.net/yrMpGgb0.jpg?s=64)](https://stackoverflow.com/users/8366188/keara) Keara [Keara](https://stackoverflow.com/users/8366188/keara) [Sep 28, 2025 at 22:00](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment140765466_64815977) Place this line in your ~/.bashrc file, then source ~/.bashrc or close and open the terminal so that you don't have to run this line every time you open a new terminal. 2025-09-28T22:00:13.157Z+00:00 0 Reply - Copy link Add a comment This answer is useful 55 Save this answer. Show activity on this post. Maybe you need to execute "source ~/.bashrc" [Share](https://stackoverflow.com/a/44342045 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this answer](https://stackoverflow.com/posts/44342045/edit) Follow Follow this answer to receive notifications answered Jun 3, 2017 at 8:38 [![dew's user avatar](https://i.sstatic.net/QEkNz.jpg?s=64)](https://stackoverflow.com/users/4997446/dew) [dew](https://stackoverflow.com/users/4997446/dew) 68555 silver badges22 bronze badges ## 3 Comments Add a comment [![](https://www.gravatar.com/avatar/2753beb6d6614d67cefcf6f1e98da82b?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/4696750/karan-sharma) Karan Sharma [Karan Sharma](https://stackoverflow.com/users/4696750/karan-sharma) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment119240033_44342045) Can you explain what does this command actually do? Thanks\! 2021-05-09T20:16:19.097Z+00:00 4 Reply - Copy link [![](https://i.sstatic.net/YHCfl.jpg?s=64)](https://stackoverflow.com/users/1797341/hugo-m-zuleta) Hugo M. Zuleta [Hugo M. Zuleta](https://stackoverflow.com/users/1797341/hugo-m-zuleta) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment127633762_44342045) @KaranSharma I believe it resets the environment variables for your profile. If you recently installed Anaconda, that file was edited by the installer with the new env variables, but have not been loaded for conda or other utilities. I might be wrong, I'm new to this whole thing. 2022-05-14T15:36:00.39Z+00:00 1 Reply - Copy link [![](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) Peter Mortensen [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment134262036_44342045) @Karan Sharma: The mysterious "[sourcing](https://en.wikipedia.org/wiki/Dot_\(command\)#Source)" explained 2023-04-28T16:35:33.337Z+00:00 1 Reply - Copy link Add a comment This answer is useful 47 Save this answer. Show activity on this post. Sometimes, if you don't restart your terminal after you have also installed Anaconda, it gives this error. Close your terminal window and restart it. It worked for me now\! [Share](https://stackoverflow.com/a/46866740 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/46866740/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 21:35](https://stackoverflow.com/posts/46866740/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Oct 21, 2017 at 18:41 [![Sanreet's user avatar](https://www.gravatar.com/avatar/d3def7cc8b319a3b6c3828e6bb7cbf97?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/5332917/sanreet) [Sanreet](https://stackoverflow.com/users/5332917/sanreet) 47944 silver badges22 bronze badges ## 1 Comment Add a comment [![](https://www.gravatar.com/avatar/7fd0d69f764f9e0895e8b6429b47b6d7?s=48&d=identicon&r=PG)](https://stackoverflow.com/users/1496974/frmbelz) frmbelz [frmbelz](https://stackoverflow.com/users/1496974/frmbelz) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment124212649_46866740) Also instead of close/open terminal, could `source ~/.bashrc` OR `. ~/.barshrc` if bash is a shell you are using (to see your shell `echo $0`) 2021-12-07T20:56:25.71Z+00:00 0 Reply - Copy link This answer is useful 34 Save this answer. Show activity on this post. For those experiencing issues after upgrading to [macOS v10.15](https://en.wikipedia.org/wiki/MacOS_Catalina) (Catalina). Short version: ``` # 1a) Use tool: conda-prefix-replacement - # Restores: Desktop -> Relocated Items -> Security -> anaconda3 curl -L https://repo.anaconda.com/pkgs/misc/cpr-exec/cpr-0.1.1-osx-64.exe -o cpr && chmod +x cpr ./cpr rehome ~/anaconda3 # or if fails #./cpr rehome ~/anaconda3 --old-prefix /Anaconda3 source ~/anaconda3/bin/activate # 1b) Alternatively - reinstall Anaconda - # brew cask install anaconda # 2) conda init conda init zsh # or # conda init ``` Further reading - [Anaconda blog post](https://www.anaconda.com/how-to-restore-anaconda-after-macos-catalina-update/) and [GitHub discussion](https://github.com/ContinuumIO/anaconda-issues/issues/10998). [Share](https://stackoverflow.com/a/58615302 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/58615302/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:07](https://stackoverflow.com/posts/58615302/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Oct 29, 2019 at 20:55 [![xgMz's user avatar](https://i.sstatic.net/kjt3W.jpg?s=64)](https://stackoverflow.com/users/47551/xgmz) [xgMz](https://stackoverflow.com/users/47551/xgmz) 3,36422 gold badges3232 silver badges2323 bronze badges ## Comments Add a comment This answer is useful 25 Save this answer. Show activity on this post. **conda: command not found** Try adding the below line to your .bashrc file: ``` export PATH=~/anaconda3/bin:$PATH ``` Then try: ``` conda --version ``` to see the version. And then for it to take effect ``` conda init ``` [Share](https://stackoverflow.com/a/67718501 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/67718501/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:37](https://stackoverflow.com/posts/67718501/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered May 27, 2021 at 8:29 [![Bharath Kumar's user avatar](https://lh3.googleusercontent.com/-SbUKTG8t8eQ/AAAAAAAAAAI/AAAAAAAADLg/bMjzwj2PU48/s64-rj/photo.jpg)](https://stackoverflow.com/users/8814904/bharath-kumar) [Bharath Kumar](https://stackoverflow.com/users/8814904/bharath-kumar) 1,0311212 silver badges99 bronze badges ## Comments Add a comment This answer is useful 18 Save this answer. Show activity on this post. Maybe you should type add this to your `.bashrc` or `.zshrc` ``` Copyexport PATH="/anaconda3/bin":$PATH ``` It worked for me. [Share](https://stackoverflow.com/a/54625587 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/54625587/edit) Follow Follow this answer to receive notifications answered Feb 11, 2019 at 7:16 [![Gray's user avatar](https://www.gravatar.com/avatar/018934becfcc1b6afb5522eb8a411d1f?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/4334399/gray) [Gray](https://stackoverflow.com/users/4334399/gray) 85599 silver badges1717 bronze badges ## 2 Comments Add a comment [![](https://i.sstatic.net/RGC4p.png?s=64)](https://stackoverflow.com/users/6036156/oha-noch) Oha Noch [Oha Noch](https://stackoverflow.com/users/6036156/oha-noch) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment117962309_54625587) On ubuntu i needed to refer to home so i used: `export PATH="~/anaconda3/bin":$PATH` and it worked 2021-03-21T12:25:59.05Z+00:00 5 Reply - Copy link [![](https://www.gravatar.com/avatar/7fd0d69f764f9e0895e8b6429b47b6d7?s=48&d=identicon&r=PG)](https://stackoverflow.com/users/1496974/frmbelz) frmbelz [frmbelz](https://stackoverflow.com/users/1496974/frmbelz) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment124212864_54625587) `echo $0` to see what shell if it is `.bashrc` or `.zshrc` OR `ls -ld ~/.*` to see which one is already there. 2021-12-07T21:06:50.31Z+00:00 0 Reply - Copy link This answer is useful 11 Save this answer. Show activity on this post. If you are using Mac and have installed Conda with Homebrew then you need to run this command to export the path: ``` Copyexport PATH="$PATH:/opt/homebrew/anaconda3/bin" ``` [Share](https://stackoverflow.com/a/74460458 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/74460458/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:33](https://stackoverflow.com/posts/74460458/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Nov 16, 2022 at 12:27 [![Qazi Ammar's user avatar](https://lh5.googleusercontent.com/-4aMPftC4NAk/AAAAAAAAAAI/AAAAAAAAAEY/glwv-sbu7g0/s64-rj/photo.jpg)](https://stackoverflow.com/users/6026338/qazi-ammar) [Qazi Ammar](https://stackoverflow.com/users/6026338/qazi-ammar) 1,60433 gold badges2020 silver badges4242 bronze badges ## Comments Add a comment This answer is useful 8 Save this answer. Show activity on this post. Execute the following command after installing and adding to the path ``` Copysource ~/.bashrc ``` where `source` is a bash shell built-in command that executes the content of the file passed as argument, in the current shell. It runs during boot up automatically. [Share](https://stackoverflow.com/a/52252141 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/52252141/edit) Follow Follow this answer to receive notifications [edited Sep 10, 2018 at 7:10](https://stackoverflow.com/posts/52252141/revisions "show all edits to this post") [![CKE's user avatar](https://i.sstatic.net/tcQt9.png?s=64)](https://stackoverflow.com/users/9222996/cke) [CKE](https://stackoverflow.com/users/9222996/cke) 1,6381919 gold badges2222 silver badges3333 bronze badges answered Sep 10, 2018 at 6:24 [![Gursewak Singh's user avatar](https://lh4.googleusercontent.com/-17vENZ4G688/AAAAAAAAAAI/AAAAAAAAJpA/8s1pgbqO2Q8/s64-rj/photo.jpg)](https://stackoverflow.com/users/9466007/gursewak-singh) [Gursewak Singh](https://stackoverflow.com/users/9466007/gursewak-singh) 17211 silver badge66 bronze badges ## Comments Add a comment This answer is useful 6 Save this answer. Show activity on this post. I had the same issue. I just closed and reopened the terminal, and it worked. That was because I installed Anaconda with the terminal open. [Share](https://stackoverflow.com/a/51863203 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/51863203/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 21:34](https://stackoverflow.com/posts/51863203/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Aug 15, 2018 at 17:01 [![RaphaëlR's user avatar](https://lh5.googleusercontent.com/-Bp5huG4mphw/AAAAAAAAAAI/AAAAAAAAIU0/ZeidGH0ciys/s64-rj/photo.jpg)](https://stackoverflow.com/users/7138267/rapha%C3%ABlr) [RaphaëlR](https://stackoverflow.com/users/7138267/rapha%C3%ABlr) 56277 silver badges99 bronze badges ## Comments Add a comment This answer is useful 4 Save this answer. Show activity on this post. I am using a [WSL](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) system. In my case, for the *conda* command to be added to the path, and persist, I had to do the following: ### First: ``` Copyvim ~/.bashrc ``` This will open the .bashrc file using [Vim](https://en.wikipedia.org/wiki/Vim_%28text_editor%29). You should go to the bottom of the file using the arrow keys, click `i` to toggle the insert mode and paste: `export PATH="$PATH:/home/userName/miniconda3/bin"`. After that, save and close Vim using `:wq`. (if you are not comfortable using Vim, you can use the `nano` command instead) ``` Copynano ~/.bashrc ``` ### Second: ``` Copysource ~/.bashrc ``` ### Third: Close and open the terminal! This should work for everyone. To test if it is working, try: ``` Copyconda --version ``` [Share](https://stackoverflow.com/a/76015542 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/76015542/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:42](https://stackoverflow.com/posts/76015542/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Apr 14, 2023 at 13:20 [![Duarte Elvas's user avatar](https://i.sstatic.net/CaRt0.png?s=64)](https://stackoverflow.com/users/13811701/duarte-elvas) [Duarte Elvas](https://stackoverflow.com/users/13811701/duarte-elvas) 25311 gold badge22 silver badges1111 bronze badges ## Comments Add a comment This answer is useful 4 Save this answer. Show activity on this post. If you are using Linux: After installing Anaconda from the *.sh* file (which you can download from <https://www.spyder-ide.org/>): Step 1: Activate the environment in the terminal by entering the below command. ``` source ~/anaconda3/bin/activate ``` Step 2: Type *spyder* in the terminal. You can get the Spyder IDE. ``` spyder ``` [Share](https://stackoverflow.com/a/75065832 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/75065832/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 21:28](https://stackoverflow.com/posts/75065832/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Jan 10, 2023 at 5:28 [![kiran beethoju's user avatar](https://lh3.googleusercontent.com/a-/AAuE7mB1_cXonuLz-HjgUpZTjKjLkreWDvcVLqZI9182Xw=k-s64)](https://stackoverflow.com/users/11976072/kiran-beethoju) [kiran beethoju](https://stackoverflow.com/users/11976072/kiran-beethoju) 16811 silver badge55 bronze badges ## Comments Add a comment This answer is useful 4 Save this answer. Show activity on this post. I faced this issue on my Mac after updating Conda. The solution was to run the Conda mini installer on top of the existing Conda setup. ``` Copy ``` On Linux, you can use: ``` Copy ``` For other versions, you can go to <https://repo.continuum.io/miniconda/> For details, check: *[Conda command not found after running conda update package \#1364](https://github.com/conda/conda/issues/1364)* [Share](https://stackoverflow.com/a/46503868 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/46503868/edit) Follow Follow this answer to receive notifications [edited Apr 29, 2023 at 0:23](https://stackoverflow.com/posts/46503868/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Sep 30, 2017 at 14:53 [![Jeevan's user avatar](https://www.gravatar.com/avatar/d3d6cb3fda2fa7eb057386e7e5ceb583?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/214647/jeevan) [Jeevan](https://stackoverflow.com/users/214647/jeevan) 8,8221414 gold badges5353 silver badges6969 bronze badges ## Comments Add a comment This answer is useful 3 Save this answer. Show activity on this post. I had to run the following command to activate the shell: ``` Copyeval "$(/home/username/anaconda3/bin/conda shell.bash hook)" ``` [Share](https://stackoverflow.com/a/67641767 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/67641767/edit) Follow Follow this answer to receive notifications answered May 21, 2021 at 17:53 [![Data Mastery's user avatar](https://lh4.googleusercontent.com/-ki54KKw1fIM/AAAAAAAAAAI/AAAAAAAAAAA/ACHi3rdohpd8cm1Qclo2rXmoC1KQnYVeIg/s64-rj/photo.jpg)](https://stackoverflow.com/users/12181414/data-mastery) [Data Mastery](https://stackoverflow.com/users/12181414/data-mastery) 2,16544 gold badges3131 silver badges8484 bronze badges ## Comments Add a comment This answer is useful 2 Save this answer. Show activity on this post. export PATH="~/anaconda3/bin":\$PATH [Share](https://stackoverflow.com/a/66254477 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/66254477/edit) Follow Follow this answer to receive notifications answered Feb 18, 2021 at 6:04 [![ChrisGClark's user avatar](https://www.gravatar.com/avatar/62e7bc9a795c2945e3c2c731ae5d2748?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/6747088/chrisgclark) [ChrisGClark](https://stackoverflow.com/users/6747088/chrisgclark) 3111 bronze badge ## 1 Comment Add a comment [![](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) Peter Mortensen [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment134264562_66254477) That is a bit terse. In what context? Where should it be applied? 2023-04-28T20:25:10.137Z+00:00 0 Reply - Copy link This answer is useful 2 Save this answer. Show activity on this post. Make sure that you are installing the Anaconda binary that is compatible with your kernel. I was in the same situation. It turned out I have an x64\_86 CPU and was trying to install a 64-bit [POWER8](https://en.wikipedia.org/wiki/POWER8) installer. You can find out the same for your CPU by using the following command. It gives you a basic information about a computer's software and hardware. ``` Copyuname -a ``` <https://www.anaconda.com/download/#linux> The page in the link above displays two different types of 64-bit installers: - 64-bit (x86) installer and - 64-bit (POWER8) installer. [Share](https://stackoverflow.com/a/46745108 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/46745108/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 21:44](https://stackoverflow.com/posts/46745108/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Oct 14, 2017 at 13:29 [![Taani's user avatar](https://www.gravatar.com/avatar/c9e0613bface5df39521ce66ce3bf626?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/7332499/taani) [Taani](https://stackoverflow.com/users/7332499/taani) 7111 silver badge33 bronze badges ## Comments Add a comment This answer is useful 1 Save this answer. Show activity on this post. The brute-force way could be ``` Copy ``` Then initialize and test Conda. ``` Copy ``` Which is what Conda tries to do. Take a look at the end of `~/.bashrc` with `less ~/.bashrc` or with `cat ~/.bashrc` [Share](https://stackoverflow.com/a/67496449 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/67496449/edit) Follow Follow this answer to receive notifications answered May 12, 2021 at 2:04 [![Echo9k's user avatar](https://lh5.googleusercontent.com/-7p2Z1wfeyQ0/AAAAAAAAAAI/AAAAAAAAJSc/HD-1bWS8kBE/s64-rj/photo.jpg)](https://stackoverflow.com/users/10214361/echo9k) [Echo9k](https://stackoverflow.com/users/10214361/echo9k) 59466 silver badges99 bronze badges ## Comments Add a comment This answer is useful 1 Save this answer. Show activity on this post. Do the same thing as the suggestion given by bash console, but pay attention that there are some errors in the suggestion (the file path format is incorrect). Paste these two commands in the Bash console for Windows: ``` Copyecho ". C:/Users/mingm/Anaconda3/etc/profile.d/conda.sh" >> ~/.bashrc ``` and ``` Copyecho "conda activate" >> ~/.bashrc ``` After having pasted these two commands, exit the Bash console, reload it and then activate the virtual environment by entering "conda activate your\_env\_name". [Share](https://stackoverflow.com/a/67750087 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/67750087/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:29](https://stackoverflow.com/posts/67750087/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered May 29, 2021 at 10:05 [![Mingming's user avatar](https://lh5.googleusercontent.com/-BpSQgnupq1Y/AAAAAAAAAAI/AAAAAAAAAAA/APUIFaNNNCuL158TSIAChcyL6ghi3L_9hg/mo/s64-rj/photo.jpg)](https://stackoverflow.com/users/7694287/mingming) [Mingming](https://stackoverflow.com/users/7694287/mingming) 40255 silver badges1010 bronze badges ## Comments Add a comment This answer is useful 1 Save this answer. Show activity on this post. It can be a silly mistake. Make sure that you use `anaconda3` instead of `anaconda` in the export path if you installed it so. [Share](https://stackoverflow.com/a/67916328 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/67916328/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:29](https://stackoverflow.com/posts/67916328/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Jun 10, 2021 at 7:08 [![Balint's user avatar](https://www.gravatar.com/avatar/13d1af91bfc48bdc9319b0facbaacffe?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/5426414/balint) [Balint](https://stackoverflow.com/users/5426414/balint) 4377 bronze badges ## Comments Add a comment This answer is useful 1 Save this answer. Show activity on this post. This worked on an [M1 Mac](https://en.wikipedia.org/wiki/Apple_M1): To get the user name: ``` Copyecho $USER ``` Then substitute my\_username with the correct one. ``` Copysource /Users/my_username/opt/anaconda3/bin/activate ``` [Share](https://stackoverflow.com/a/74191274 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/74191274/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:32](https://stackoverflow.com/posts/74191274/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Oct 25, 2022 at 8:38 [![Žygimantas's user avatar](https://i.sstatic.net/xUANg.jpg?s=64)](https://stackoverflow.com/users/7451973/%C5%BDygimantas) [Žygimantas](https://stackoverflow.com/users/7451973/%C5%BDygimantas) 33133 silver badges1616 bronze badges ## Comments Add a comment This answer is useful 1 Save this answer. Show activity on this post. By default, Anaconda and Miniconda will put necessary command alias to the [.bashrc file](https://en.wikipedia.org/wiki/Bash_\(Unix_shell\)#Legacy-compatible_Bash_startup_example) file. All you have to do is to reload added alias inside `~/.bashrc` using this command: ``` Copysource ~/.bashrc ``` [Share](https://stackoverflow.com/a/75265893 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/75265893/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:39](https://stackoverflow.com/posts/75265893/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Jan 28, 2023 at 6:49 [![Ali Akhtari's user avatar](https://www.gravatar.com/avatar/2a70cc696fd4b3d26debfb5ffaea9da2?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/8853364/ali-akhtari) [Ali Akhtari](https://stackoverflow.com/users/8853364/ali-akhtari) 1,31233 gold badges2222 silver badges4343 bronze badges ## 1 Comment Add a comment [![](https://www.gravatar.com/avatar/dbd6250c7018198acb2ab8ebf71c6e73?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/7803991/talita) Talita [Talita](https://stackoverflow.com/users/7803991/talita) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment132861865_75265893) This works. Alternatively, if you are using zsh, you need to source ~/.zshrc 2023-01-31T08:20:19.19Z+00:00 1 Reply - Copy link This answer is useful 1 Save this answer. Show activity on this post. on Windows, select "Anaconda Prompt" instead of the terminal. [![enter image description here](https://i.sstatic.net/JpAR95c2.png)](https://i.sstatic.net/JpAR95c2.png) [Share](https://stackoverflow.com/a/79168868 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/79168868/edit) Follow Follow this answer to receive notifications answered Nov 8, 2024 at 5:07 [![Jaider's user avatar](https://www.gravatar.com/avatar/991498a27b7f3690fbfcb13143052ac9?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/480700/jaider) [Jaider](https://stackoverflow.com/users/480700/jaider) 15\.1k55 gold badges8383 silver badges8888 bronze badges ## Comments Add a comment This answer is useful 0 Save this answer. Show activity on this post. This worked for me on CentOS and miniconda3. Find out which shell you are using `echo $0` `conda init bash` (could be `conda init zsh` if you are using `zsh`, etc.) - this adds a path to `~/.bashrc` Reload command line `sourc ~/.bashrc` OR `. ~/.bashrc` [Share](https://stackoverflow.com/a/70267089 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/70267089/edit) Follow Follow this answer to receive notifications answered Dec 7, 2021 at 21:21 [![frmbelz's user avatar](https://www.gravatar.com/avatar/7fd0d69f764f9e0895e8b6429b47b6d7?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/1496974/frmbelz) [frmbelz](https://stackoverflow.com/users/1496974/frmbelz) 2,6933232 silver badges3131 bronze badges ## Comments Add a comment This answer is useful 0 Save this answer. Show activity on this post. I have encountered this problem lately and I have found a solution that worked for me. It is possible that your current user might not have permissions to anaconda directory, so check if you can read/write there, and if not, then change the files owner by using `chown`. [Share](https://stackoverflow.com/a/70835470 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/70835470/edit) Follow Follow this answer to receive notifications answered Jan 24, 2022 at 14:31 [![k-krakowski's user avatar](https://www.gravatar.com/avatar/febe08c13f3246b8796880b1a8ee9ba8?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/2953340/k-krakowski) [k-krakowski](https://stackoverflow.com/users/2953340/k-krakowski) 4311 silver badge77 bronze badges ## Comments Add a comment This answer is useful 0 Save this answer. Show activity on this post. For Conda \> 4.4 follow this: ``` Copyecho ". /home/ubuntu/miniconda2/etc/profile.d/conda.sh" >> ~/.bashrc ``` Then you need to reload user bash, so you need to log out: ``` Copyexit ``` And then log again. [Share](https://stackoverflow.com/a/62256313 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/62256313/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:09](https://stackoverflow.com/posts/62256313/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Jun 8, 2020 at 6:35 [![jobima's user avatar](https://www.gravatar.com/avatar/4f0739edb06a6f81777e1853586821b0?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/1939376/jobima) [jobima](https://stackoverflow.com/users/1939376/jobima) 5,95011 gold badge2323 silver badges1818 bronze badges ## 1 Comment Add a comment [![](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) Peter Mortensen [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment134264427_62256313) What do you mean by *"reload user bash"*? Reload the content of file *.bashrc*? Or something to do with file `/usr/bash`? Or something else? 2023-04-28T20:10:55.48Z+00:00 0 Reply - Copy link This answer is useful 0 Save this answer. Show activity on this post. For me uninstalling and reinstalling miniconda did the trick. I did lose all my existing repos but at least the command works now. [Share](https://stackoverflow.com/a/77577118 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/77577118/edit) Follow Follow this answer to receive notifications answered Nov 30, 2023 at 9:02 [![markemus's user avatar](https://www.gravatar.com/avatar/764de0556f5361de7c61862ae7c8198b?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/9095840/markemus) [markemus](https://stackoverflow.com/users/9095840/markemus) 1,8241818 silver badges2525 bronze badges ## 1 Comment Add a comment [![](https://i.sstatic.net/1fPD7.jpg?s=64)](https://stackoverflow.com/users/3536819/murphy1310) murphy1310 [murphy1310](https://stackoverflow.com/users/3536819/murphy1310) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment138438025_77577118) lol............ 2024-05-24T03:01:00.88Z+00:00 1 Reply - Copy link This answer is useful 0 Save this answer. Show activity on this post. I installed it with sudo, which made it available only to root user. Installing without sudo fixed it and now I can access conda as I wanted [Share](https://stackoverflow.com/a/79091315 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/79091315/edit) Follow Follow this answer to receive notifications answered Oct 15, 2024 at 18:36 [![Roxell's user avatar](https://i.sstatic.net/pJx2o.png?s=64)](https://stackoverflow.com/users/8848219/roxell) [Roxell](https://stackoverflow.com/users/8848219/roxell) 4166 bronze badges ## Comments Add a comment This answer is useful \-1 Save this answer. Show activity on this post. on conda prompt try ``` Copyconda init powershell ``` [Share](https://stackoverflow.com/a/75449055 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/75449055/edit) Follow Follow this answer to receive notifications answered Feb 14, 2023 at 14:11 [![fharlup's user avatar](https://www.gravatar.com/avatar/148f0fb5d1656edf944853212c7effc2?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/15235854/fharlup) [fharlup](https://stackoverflow.com/users/15235854/fharlup) 5911 silver badge55 bronze badges ## 1 Comment Add a comment [![](https://i.sstatic.net/HZ9CL.png?s=64)](https://stackoverflow.com/users/1145388/stephen-ostermiller) Stephen Ostermiller [Stephen Ostermiller](https://stackoverflow.com/users/1145388/stephen-ostermiller) [Over a year ago](https://stackoverflow.com/questions/35246386/conda-command-not-found#comment138017532_75449055) If conda isn't already in the path, how can they run that? 2024-04-07T08:24:57.397Z+00:00 0 Reply - Copy link This answer is useful \-1 Save this answer. Show activity on this post. Mac OS X: `cd /Users/USER_NAME/anaconda3/bin && ./activate` [Share](https://stackoverflow.com/a/65051111 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/65051111/edit) Follow Follow this answer to receive notifications [edited Apr 28, 2023 at 20:24](https://stackoverflow.com/posts/65051111/revisions "show all edits to this post") [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) [Peter Mortensen](https://stackoverflow.com/users/63550/peter-mortensen) 31\.2k2222 gold badges110110 silver badges134134 bronze badges answered Nov 28, 2020 at 15:15 [![Ryan Cocuzzo's user avatar](https://i.sstatic.net/4xYkH.jpg?s=64)](https://stackoverflow.com/users/6127225/ryan-cocuzzo) [Ryan Cocuzzo](https://stackoverflow.com/users/6127225/ryan-cocuzzo) 3,22988 gold badges4242 silver badges6969 bronze badges ## Comments Add a comment **[Protected question](https://stackoverflow.com/help/privileges/protect-questions)**. To answer this question, you need to have at least 10 reputation on this site (not counting the [association bonus](https://meta.stackexchange.com/questions/141648/what-is-the-association-bonus-and-how-does-it-work)). The reputation requirement helps protect this question from spam and non-answer activity. Start asking to get answers Find the answer to your question by asking. [Ask question](https://stackoverflow.com/questions/ask) Explore related questions - [python](https://stackoverflow.com/questions/tagged/python "show questions tagged 'python'") - [zsh](https://stackoverflow.com/questions/tagged/zsh "show questions tagged 'zsh'") - [anaconda](https://stackoverflow.com/questions/tagged/anaconda "show questions tagged 'anaconda'") - [miniconda](https://stackoverflow.com/questions/tagged/miniconda "show questions tagged 'miniconda'") See similar questions with these tags. - The Overflow Blog - [What’s new at Stack Overflow: February 2026](https://stackoverflow.blog/2026/02/02/what-s-new-at-stack-overflow-february-2026/?cb=1) - [Generating text with diffusion (and ROI with LLMs)](https://stackoverflow.blog/2026/02/03/generating-text-with-diffusion-and-roi-with-llms/?cb=1) - Featured on Meta - [Results of the January 2026 Community Asks Sprint: Community Badges](https://meta.stackexchange.com/questions/417043/results-of-the-january-2026-community-asks-sprint-community-badges?cb=1) - [All users on Stack Exchange can now participate in chat](https://meta.stackexchange.com/questions/417109/all-users-on-stack-exchange-can-now-participate-in-chat?cb=1) - [Policy: Generative AI (e.g., ChatGPT) is banned](https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1) - [Stack Overflow now uses machine learning to flag spam automatically](https://meta.stackoverflow.com/questions/437959/stack-overflow-now-uses-machine-learning-to-flag-spam-automatically?cb=1) - [No, I do not believe this is the end](https://meta.stackoverflow.com/questions/438009/no-i-do-not-believe-this-is-the-end?cb=1) [Visit chat](https://chat.stackoverflow.com/) Community activity Last 1 hr - Users online activity 10012 users online - 20 questions - 21 answers - 49 comments - 205 upvotes Popular tags [python](https://stackoverflow.com/questions/tagged/python)[containers](https://stackoverflow.com/questions/tagged/containers)[inheritance](https://stackoverflow.com/questions/tagged/inheritance)[javascript](https://stackoverflow.com/questions/tagged/javascript)[c++](https://stackoverflow.com/questions/tagged/c++)[c\#](https://stackoverflow.com/questions/tagged/c) Popular unanswered question [Sphinx and kernel doc macros to links](https://stackoverflow.com/questions/79863646) [python-sphinx](https://stackoverflow.com/questions/tagged/python-sphinx) [![User avatar](https://i.sstatic.net/ky57j.jpg?s=256)](https://stackoverflow.com/users/1564946) [pevik](https://stackoverflow.com/users/1564946) - 4\.9k 26 days ago #### Linked [0](https://stackoverflow.com/questions/77678567/why-can-i-not-install-miniconda-to-another-directory-rather-than-home?lq=1 "Question score (upvotes - downvotes)") [Why can I not install miniconda to another directory rather than \`HOME\`?](https://stackoverflow.com/questions/77678567/why-can-i-not-install-miniconda-to-another-directory-rather-than-home?noredirect=1&lq=1) [270](https://stackoverflow.com/questions/18675907/how-can-i-run-conda?lq=1 "Question score (upvotes - downvotes)") [How can I run Conda?](https://stackoverflow.com/questions/18675907/how-can-i-run-conda?noredirect=1&lq=1) [57](https://stackoverflow.com/questions/39884499/conda-command-will-prompt-error-bad-interpreter-no-such-file-or-directory?lq=1 "Question score (upvotes - downvotes)") [conda command will prompt error: "Bad Interpreter: No such file or directory"](https://stackoverflow.com/questions/39884499/conda-command-will-prompt-error-bad-interpreter-no-such-file-or-directory?noredirect=1&lq=1) [4](https://stackoverflow.com/questions/64090326/bash-script-to-install-conda-leads-to-conda-command-not-found-unless-i-run-b?lq=1 "Question score (upvotes - downvotes)") [Bash script to install conda leads to "conda: command not found" unless I run \`bash\` at the command line afterwards](https://stackoverflow.com/questions/64090326/bash-script-to-install-conda-leads-to-conda-command-not-found-unless-i-run-b?noredirect=1&lq=1) [2](https://stackoverflow.com/questions/74307454/ssh-and-conda-command-not-found-or-re-configuration-required?lq=1 "Question score (upvotes - downvotes)") [SSH and conda: Command not found or (re)-configuration required](https://stackoverflow.com/questions/74307454/ssh-and-conda-command-not-found-or-re-configuration-required?noredirect=1&lq=1) [0](https://stackoverflow.com/questions/48110104/anaconda-python-3-6-install-issue?lq=1 "Question score (upvotes - downvotes)") [Anaconda Python 3.6 install issue](https://stackoverflow.com/questions/48110104/anaconda-python-3-6-install-issue?noredirect=1&lq=1) [1](https://stackoverflow.com/questions/71110110/how-to-run-bash-export-command-in-dockerfile-and-have-it-stick?lq=1 "Question score (upvotes - downvotes)") [How to run bash EXPORT command in dockerfile and have it stick?](https://stackoverflow.com/questions/71110110/how-to-run-bash-export-command-in-dockerfile-and-have-it-stick?noredirect=1&lq=1) [0](https://stackoverflow.com/questions/55149292/after-installing-spyder-conda-module-is-not-found?lq=1 "Question score (upvotes - downvotes)") [After installing spyder, conda module is not found](https://stackoverflow.com/questions/55149292/after-installing-spyder-conda-module-is-not-found?noredirect=1&lq=1) [1](https://stackoverflow.com/questions/74395822/how-do-i-recompile-conda-activate-and-deactivate-commands-in-miniconda?lq=1 "Question score (upvotes - downvotes)") [How do I recompile Conda, activate and deactivate commands in miniconda?](https://stackoverflow.com/questions/74395822/how-do-i-recompile-conda-activate-and-deactivate-commands-in-miniconda?noredirect=1&lq=1) [1](https://stackoverflow.com/questions/76679620/conda-command-not-found-by-bash?lq=1 "Question score (upvotes - downvotes)") [Conda command not found by Bash](https://stackoverflow.com/questions/76679620/conda-command-not-found-by-bash?noredirect=1&lq=1) [See more linked questions](https://stackoverflow.com/questions/linked/35246386?lq=1) #### Related [6285](https://stackoverflow.com/questions/89228/how-do-i-execute-a-program-or-call-a-system-command?rq=1 "Question score (upvotes - downvotes)") [How do I execute a program or call a system command?](https://stackoverflow.com/questions/89228/how-do-i-execute-a-program-or-call-a-system-command?rq=1) [1605](https://stackoverflow.com/questions/11618898/pg-config-executable-not-found?rq=1 "Question score (upvotes - downvotes)") [pg\_config executable not found](https://stackoverflow.com/questions/11618898/pg-config-executable-not-found?rq=1) [3](https://stackoverflow.com/questions/46969296/anaconda-fedora-install-conda-command-not-found?rq=1 "Question score (upvotes - downvotes)") [Anaconda fedora install: conda: command not found](https://stackoverflow.com/questions/46969296/anaconda-fedora-install-conda-command-not-found?rq=1) [1](https://stackoverflow.com/questions/59345872/command-python-not-found-after-creating-conda-environment?rq=1 "Question score (upvotes - downvotes)") [Command 'python' not found after creating conda environment](https://stackoverflow.com/questions/59345872/command-python-not-found-after-creating-conda-environment?rq=1) [975](https://stackoverflow.com/questions/49127834/removing-conda-environment?rq=1 "Question score (upvotes - downvotes)") [Removing Conda environment](https://stackoverflow.com/questions/49127834/removing-conda-environment?rq=1) [642](https://stackoverflow.com/questions/42231764/how-can-i-rename-a-conda-environment?rq=1 "Question score (upvotes - downvotes)") [How can I rename a conda environment?](https://stackoverflow.com/questions/42231764/how-can-i-rename-a-conda-environment?rq=1) [6](https://stackoverflow.com/questions/49821930/conda-command-not-found-even-though-path-is-exported?rq=1 "Question score (upvotes - downvotes)") [conda command not found even though path is exported](https://stackoverflow.com/questions/49821930/conda-command-not-found-even-though-path-is-exported?rq=1) [685](https://stackoverflow.com/questions/9780717/bash-pip-command-not-found?rq=1 "Question score (upvotes - downvotes)") [bash: pip: command not found](https://stackoverflow.com/questions/9780717/bash-pip-command-not-found?rq=1) [0](https://stackoverflow.com/questions/69333581/conda-command-not-found-on-pi3?rq=1 "Question score (upvotes - downvotes)") [conda command not found on pi3](https://stackoverflow.com/questions/69333581/conda-command-not-found-on-pi3?rq=1) #### [Hot Network Questions](https://stackexchange.com/questions?tab=hot) - [GRE Q: "criticisms should be an anonymous / evenhanded enterprise”](https://ell.stackexchange.com/questions/373862/gre-q-criticisms-should-be-an-anonymous-evenhanded-enterprise) - [Can I recover data from a live installation medium, or is everything stored in RAM?](https://unix.stackexchange.com/questions/804159/can-i-recover-data-from-a-live-installation-medium-or-is-everything-stored-in-r) - [Breaker vs Wiring vs Outlet - Does this thinking make sense?](https://diy.stackexchange.com/questions/329013/breaker-vs-wiring-vs-outlet-does-this-thinking-make-sense) - [Carcassone Castle Crossing pieces](https://boardgames.stackexchange.com/questions/64388/carcassone-castle-crossing-pieces) - [GN - Connecting manifold edges around a central point (cone)](https://blender.stackexchange.com/questions/344898/gn-connecting-manifold-edges-around-a-central-point-cone) - [Position of logo in a presentation](https://tex.stackexchange.com/questions/759150/position-of-logo-in-a-presentation) - [What actions can I take as a junior developer to solve long review delays?](https://workplace.stackexchange.com/questions/203134/what-actions-can-i-take-as-a-junior-developer-to-solve-long-review-delays) - [Accepted translation for "sibling node"](https://russian.stackexchange.com/questions/29569/accepted-translation-for-sibling-node) - [Ship or a building discovered on the moon, an old fashioned railway trolley](https://scifi.stackexchange.com/questions/303097/ship-or-a-building-discovered-on-the-moon-an-old-fashioned-railway-trolley) - [How can I find the center-point of a circle given three 3D points on its boundary, without dealing with huge expressions?](https://mathematica.stackexchange.com/questions/318600/how-can-i-find-the-center-point-of-a-circle-given-three-3d-points-on-its-boundar) - [How to add fermata symbol to metre package?](https://tex.stackexchange.com/questions/759162/how-to-add-fermata-symbol-to-metre-package) - [Left hand trills toward the end of Bach's BWV 825 Sarabande](https://music.stackexchange.com/questions/143159/left-hand-trills-toward-the-end-of-bachs-bwv-825-sarabande) - [On the distribution of orders of a fixed norm-1 unit modulo inert primes](https://mathoverflow.net/questions/507727/on-the-distribution-of-orders-of-a-fixed-norm-1-unit-modulo-inert-primes) - [What is “the mystery of the gospel” that Paul wants to make known boldly?](https://hermeneutics.stackexchange.com/questions/114443/what-is-the-mystery-of-the-gospel-that-paul-wants-to-make-known-boldly) - [How to obtain a closed-form expression for this integral?](https://mathematica.stackexchange.com/questions/318649/how-to-obtain-a-closed-form-expression-for-this-integral) - [How to set up OTP passwords for command-line use?](https://unix.stackexchange.com/questions/804163/how-to-set-up-otp-passwords-for-command-line-use) - [Identify two actors from Knight Rider pilot](https://movies.stackexchange.com/questions/131420/identify-two-actors-from-knight-rider-pilot) - [How can I gain access through my tongue and groove wood ceiling for plumbing work?](https://diy.stackexchange.com/questions/329026/how-can-i-gain-access-through-my-tongue-and-groove-wood-ceiling-for-plumbing-wor) - [Where do the criminal Belgians go after their nationality is stripped?](https://politics.stackexchange.com/questions/94175/where-do-the-criminal-belgians-go-after-their-nationality-is-stripped) - ["The Settlement" in Pym's A Glass of Blessings](https://literature.stackexchange.com/questions/31482/the-settlement-in-pyms-a-glass-of-blessings) - [Why second prize is specifically a set of steak knives?](https://movies.stackexchange.com/questions/131416/why-second-prize-is-specifically-a-set-of-steak-knives) - [Scoping the value of a l3keys option to the place it is used (part 2)](https://tex.stackexchange.com/questions/759145/scoping-the-value-of-a-l3keys-option-to-the-place-it-is-used-part-2) - [Reducing a hand wrist edge loop from 18 to 8 vertices for SubD animation](https://blender.stackexchange.com/questions/344908/reducing-a-hand-wrist-edge-loop-from-18-to-8-vertices-for-subd-animation) - [App won't install on one of two "identical" tablets](https://android.stackexchange.com/questions/264944/app-wont-install-on-one-of-two-identical-tablets) [Question feed](https://stackoverflow.com/feeds/question/35246386 "Feed of this question and its answers") # Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. ![](https://stackoverflow.com/posts/35246386/ivc/89e4?prg=e6b5b04c-560d-4f33-88fe-ecfddce5c4eb) lang-py # Why are you flagging this comment? Probable spam. This comment promotes a product, service or website while [failing to disclose the author's affiliation](https://stackoverflow.com/help/promotion). Unfriendly or contains harassment/bigotry/abuse. This comment is unkind, insulting or attacks another person or group. Learn more in our [Abusive behavior policy](https://stackoverflow.com/conduct/abusive-behavior). Not needed. This comment is not relevant to the post. ``` ``` Enter at least 6 characters Something else. A problem not listed above. Try to be as specific as possible. ``` ``` Enter at least 6 characters Flag comment Cancel You have 0 flags left today # ![Illustration of upvote icon after it is clicked](https://stackoverflow.com/Content/Img/modal/img-upvote.png?v=fce73bd9724d) # Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. **Upvoting** indicates when questions and answers are useful. [What's reputation and how do I get it?](https://stackoverflow.com/help/whats-reputation) Instead, you can save this post to reference later. Save this post for later Not now ##### [Stack Overflow](https://stackoverflow.com/) - [Questions](https://stackoverflow.com/questions) - [Help](https://stackoverflow.com/help) - [Chat](https://chat.stackoverflow.com/?tab=explore) ##### [Business](https://stackoverflow.co/) - [Stack Internal](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) - [Stack Data Licensing](https://stackoverflow.co/data-licensing/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=data-licensing) - [Stack Ads](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) ##### [Company](https://stackoverflow.co/) - [About](https://stackoverflow.co/) - [Press](https://stackoverflow.co/company/press/) - [Work Here](https://stackoverflow.co/company/work-here/) - [Legal](https://stackoverflow.com/legal) - [Privacy Policy](https://stackoverflow.com/legal/privacy-policy) - [Terms of Service](https://stackoverflow.com/legal/terms-of-service/public) - [Contact Us](https://stackoverflow.com/contact) - Cookie Settings - [Cookie Policy](https://policies.stackoverflow.co/stack-overflow/cookie-policy) ##### [Stack Exchange Network](https://stackexchange.com/) - [Technology](https://stackexchange.com/sites#technology) - [Culture & recreation](https://stackexchange.com/sites#culturerecreation) - [Life & arts](https://stackexchange.com/sites#lifearts) - [Science](https://stackexchange.com/sites#science) - [Professional](https://stackexchange.com/sites#professional) - [Business](https://stackexchange.com/sites#business) - [API](https://api.stackexchange.com/) - [Data](https://data.stackexchange.com/) - [Blog](https://stackoverflow.blog/?blb=1) - [Facebook](https://www.facebook.com/officialstackoverflow/) - [Twitter](https://twitter.com/stackoverflow) - [LinkedIn](https://linkedin.com/company/stack-overflow) - [Instagram](https://www.instagram.com/thestackoverflow) Site design / logo © 2026 Stack Exchange Inc; user contributions licensed under [CC BY-SA](https://stackoverflow.com/help/licensing) . rev 2026.2.2.39324
Readable Markdown
This question shows research effort; it is useful and clear 232 Save this question. Show activity on this post. I've installed [Miniconda](https://en.wikipedia.org/wiki/Anaconda_\(Python_distribution\)) and have added the environment variable `export PATH="/home/username/miniconda3/bin:$PATH"` to my *[.bashrc](https://en.wikipedia.org/wiki/Bash_\(Unix_shell\)#Legacy-compatible_Bash_startup_example)* and *[.bash\_profile](https://en.wikipedia.org/wiki/Bash_\(Unix_shell\)#Legacy-compatible_Bash_startup_example)*, but still can't run any Conda commands in my terminal. Am I missing another step in my setup? I'm using [Z shell](https://en.wikipedia.org/wiki/Z_shell) (executable `zsh`) by the way. [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) asked Feb 6, 2016 at 20:58 [![olivrg's user avatar](https://i.sstatic.net/ZV2Ai.png?s=64)](https://stackoverflow.com/users/5736786/olivrg) 9 This answer is useful 344 Save this answer. Show activity on this post. If you're using zsh and it has not been set up to read .bashrc, you need to add the Miniconda directory to the zsh shell PATH environment variable. Add this to your `.zshrc`: ``` export PATH="/home/username/miniconda/bin:$PATH" ``` Make sure to **replace** `/home/username/miniconda` with **your actual path**. Save, exit the terminal and then reopen the terminal. `conda` command should work. [![Gabriel Florit's user avatar](https://www.gravatar.com/avatar/a7214acdea146fcd74caf6290c233722?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/64372/gabriel-florit) answered Feb 6, 2016 at 21:39 [![olivrg's user avatar](https://i.sstatic.net/ZV2Ai.png?s=64)](https://stackoverflow.com/users/5736786/olivrg) 12 Comments [![](https://www.gravatar.com/avatar/00f2a3f2624a47edc48464d4929a7508?s=48&d=identicon&r=PG)](https://stackoverflow.com/users/1389898/dlmeetei) Instead of exiting and reopening, Using `source ~/.zshrc` will do 2016-02-06T22:12:48.063Z+00:00 [![](https://i.sstatic.net/HkbYt.png?s=64)](https://stackoverflow.com/users/205521/thomas-ahle) I tried this, but I still get an error when trying to install stuff `CondaIOError: Missing write permissions in: /anaconda` 2017-11-13T13:38:45.307Z+00:00 [![](https://i.sstatic.net/dYxHZ.jpg?s=64)](https://stackoverflow.com/users/6201599/m-bonjour) It works! But the path has a slight difference. `export PATH="/Users/victorzhang/anaconda2/bin:$PATH"`, the path beginning is `/Users/`, instead of `/home/` still thank you @olivrg 2018-01-13T14:56:05.563Z+00:00 [![](https://www.gravatar.com/avatar/ee0a06aae715eab1ca1506dcb40aae83?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/3567704/bpz) For those who don't know: copy the command in the `.zshrc` file that will be located in your `/User/<yourusername>/` directory. 2020-10-19T12:36:36.69Z+00:00 [![](https://lh4.googleusercontent.com/-PdL1quil2Hs/AAAAAAAAAAI/AAAAAAAAAMQ/xtulrhwqIZI/s48-rj/photo.jpg)](https://stackoverflow.com/users/10042411/vinay-verma) `nano ~/.bashrc` - then in the end add `export PATH="/home/username/miniconda3/bin:$PATH"` Make check if its miniconda or miniconda3 `source ~./.bashrc` 2021-09-18T10:01:15.757Z+00:00 \| This answer is useful 105 Save this answer. Show activity on this post. If you have the PATH in your .bashrc file and are still getting ``` conda: command not found ``` Your terminal might not be looking for the Bash file. Type `bash` in the terminal to ensure you are in Bash and then try: `conda --version` [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Jun 2, 2017 at 1:12 [![Kenan's user avatar](https://i.sstatic.net/KAcWh.png?s=64)](https://stackoverflow.com/users/6031995/kenan) [Kenan](https://stackoverflow.com/users/6031995/kenan) 14\.2k9 gold badges47 silver badges56 bronze badges 6 Comments [![](https://www.gravatar.com/avatar/225362ee09ee8c6382c528eeb0451854?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/3399468/patti-jane) thanks for this! But what is the reason we have to type bash? 2019-12-18T16:00:28.41Z+00:00 [![](https://i.sstatic.net/KAcWh.png?s=64)](https://stackoverflow.com/users/6031995/kenan) im not 100% sure but I think it's to let your command prompt read the bashrc file 2019-12-18T16:36:16.737Z+00:00 [![](https://www.gravatar.com/avatar/b348e9908c85491b284f0d993cca7b75?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/4702298/vyacheslav-tsivina) Yes, the start script for conda was added inside your .bashrc file during installation, so you need to start bash shell to start the conda 2021-01-12T00:55:14.17Z+00:00 [![](https://i.sstatic.net/2B6rV.png?s=64)](https://stackoverflow.com/users/1601580/charlie-parker) why isn't this already in my path? Why do I need to manually add it? :/ 2022-11-08T23:29:27.273Z+00:00 [![](https://i.sstatic.net/KAcWh.png?s=64)](https://stackoverflow.com/users/6031995/kenan) when you installed conda you might have select NO to add to path since it's the default. 2022-11-09T18:35:49.277Z+00:00 \| This answer is useful 70 Save this answer. Show activity on this post. To initialize your shell, run the below code: ``` source ~/anaconda3/etc/profile.d/conda.sh conda activate Your_env ``` It worked for me. I got the solution from the below link <https://www.codegrepper.com/code-%5B%E2%80%9CCommandNotFoundError>: Your shell has not been properly configured to use 'conda activate'.\]\[1\]examples/shell/CommandNotFoundError%3A+Your+shell+has+not+been+properly+configured+to+use+%27conda+activate%27.+To+initialize+your+shell%2C+run answered Nov 13, 2020 at 5:32 [![thrinadhn's user avatar](https://i.sstatic.net/nBc6W.png?s=64)](https://stackoverflow.com/users/5836700/thrinadhn) [thrinadhn](https://stackoverflow.com/users/5836700/thrinadhn) 2,68327 silver badges36 bronze badges 4 Comments [![](https://i.sstatic.net/hLRYH.jpg?s=64)](https://stackoverflow.com/users/7781396/ari) Don't forget to replace anaconda3 with miniconda3 if you're using miniconda. 2022-09-11T12:04:20.537Z+00:00 [![](https://www.gravatar.com/avatar/9bc86a4cb0ae796957c874c68db62c76?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/11258185/jonye-jin) This works only on current terminal 2023-01-31T06:38:49.57Z+00:00 [![](https://lh3.googleusercontent.com/-vPG0sZtRzIc/AAAAAAAAAAI/AAAAAAAAAGg/Slx5bI6kx8k/s48-rj/photo.jpg)](https://stackoverflow.com/users/13301597/md-fahim-bin-amin) This is the one that has worked successfully without any hassle in my case. I was facing the same problem in my WSL2 Ubuntu and Desktop Ubuntu 24.04.1 LTS both. I changed `anaconda3` with `miniconda3` as I was using miniconda. At last, I used `conda init`. After that, it initializes the Conda env in any newly opened terminal automatically like I wanted. 2024-10-10T17:02:16.177Z+00:00 [![](https://i.sstatic.net/yrMpGgb0.jpg?s=64)](https://stackoverflow.com/users/8366188/keara) Place this line in your ~/.bashrc file, then source ~/.bashrc or close and open the terminal so that you don't have to run this line every time you open a new terminal. 2025-09-28T22:00:13.157Z+00:00 This answer is useful 55 Save this answer. Show activity on this post. Maybe you need to execute "source ~/.bashrc" answered Jun 3, 2017 at 8:38 [![dew's user avatar](https://i.sstatic.net/QEkNz.jpg?s=64)](https://stackoverflow.com/users/4997446/dew) [dew](https://stackoverflow.com/users/4997446/dew) 6855 silver badges2 bronze badges 3 Comments [![](https://www.gravatar.com/avatar/2753beb6d6614d67cefcf6f1e98da82b?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/4696750/karan-sharma) Can you explain what does this command actually do? Thanks\! 2021-05-09T20:16:19.097Z+00:00 [![](https://i.sstatic.net/YHCfl.jpg?s=64)](https://stackoverflow.com/users/1797341/hugo-m-zuleta) @KaranSharma I believe it resets the environment variables for your profile. If you recently installed Anaconda, that file was edited by the installer with the new env variables, but have not been loaded for conda or other utilities. I might be wrong, I'm new to this whole thing. 2022-05-14T15:36:00.39Z+00:00 [![](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) @Karan Sharma: The mysterious "[sourcing](https://en.wikipedia.org/wiki/Dot_\(command\)#Source)" explained 2023-04-28T16:35:33.337Z+00:00 This answer is useful 47 Save this answer. Show activity on this post. Sometimes, if you don't restart your terminal after you have also installed Anaconda, it gives this error. Close your terminal window and restart it. It worked for me now\! [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Oct 21, 2017 at 18:41 [![Sanreet's user avatar](https://www.gravatar.com/avatar/d3def7cc8b319a3b6c3828e6bb7cbf97?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/5332917/sanreet) [Sanreet](https://stackoverflow.com/users/5332917/sanreet) 4794 silver badges2 bronze badges 1 Comment [![](https://www.gravatar.com/avatar/7fd0d69f764f9e0895e8b6429b47b6d7?s=48&d=identicon&r=PG)](https://stackoverflow.com/users/1496974/frmbelz) Also instead of close/open terminal, could `source ~/.bashrc` OR `. ~/.barshrc` if bash is a shell you are using (to see your shell `echo $0`) 2021-12-07T20:56:25.71Z+00:00 This answer is useful 34 Save this answer. Show activity on this post. For those experiencing issues after upgrading to [macOS v10.15](https://en.wikipedia.org/wiki/MacOS_Catalina) (Catalina). Short version: ``` # 1a) Use tool: conda-prefix-replacement - # Restores: Desktop -> Relocated Items -> Security -> anaconda3 curl -L https://repo.anaconda.com/pkgs/misc/cpr-exec/cpr-0.1.1-osx-64.exe -o cpr && chmod +x cpr ./cpr rehome ~/anaconda3 # or if fails #./cpr rehome ~/anaconda3 --old-prefix /Anaconda3 source ~/anaconda3/bin/activate # 1b) Alternatively - reinstall Anaconda - # brew cask install anaconda # 2) conda init conda init zsh # or # conda init ``` Further reading - [Anaconda blog post](https://www.anaconda.com/how-to-restore-anaconda-after-macos-catalina-update/) and [GitHub discussion](https://github.com/ContinuumIO/anaconda-issues/issues/10998). [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Oct 29, 2019 at 20:55 [![xgMz's user avatar](https://i.sstatic.net/kjt3W.jpg?s=64)](https://stackoverflow.com/users/47551/xgmz) [xgMz](https://stackoverflow.com/users/47551/xgmz) 3,3642 gold badges32 silver badges23 bronze badges Comments This answer is useful 25 Save this answer. Show activity on this post. **conda: command not found** Try adding the below line to your .bashrc file: ``` export PATH=~/anaconda3/bin:$PATH ``` Then try: ``` conda --version ``` to see the version. And then for it to take effect ``` conda init ``` [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered May 27, 2021 at 8:29 [![Bharath Kumar's user avatar](https://lh3.googleusercontent.com/-SbUKTG8t8eQ/AAAAAAAAAAI/AAAAAAAADLg/bMjzwj2PU48/s64-rj/photo.jpg)](https://stackoverflow.com/users/8814904/bharath-kumar) Comments This answer is useful 18 Save this answer. Show activity on this post. Maybe you should type add this to your `.bashrc` or `.zshrc` ``` export PATH="/anaconda3/bin":$PATH ``` It worked for me. answered Feb 11, 2019 at 7:16 [![Gray's user avatar](https://www.gravatar.com/avatar/018934becfcc1b6afb5522eb8a411d1f?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/4334399/gray) [Gray](https://stackoverflow.com/users/4334399/gray) 8559 silver badges17 bronze badges 2 Comments [![](https://i.sstatic.net/RGC4p.png?s=64)](https://stackoverflow.com/users/6036156/oha-noch) On ubuntu i needed to refer to home so i used: `export PATH="~/anaconda3/bin":$PATH` and it worked 2021-03-21T12:25:59.05Z+00:00 [![](https://www.gravatar.com/avatar/7fd0d69f764f9e0895e8b6429b47b6d7?s=48&d=identicon&r=PG)](https://stackoverflow.com/users/1496974/frmbelz) `echo $0` to see what shell if it is `.bashrc` or `.zshrc` OR `ls -ld ~/.*` to see which one is already there. 2021-12-07T21:06:50.31Z+00:00 This answer is useful 11 Save this answer. Show activity on this post. If you are using Mac and have installed Conda with Homebrew then you need to run this command to export the path: ``` export PATH="$PATH:/opt/homebrew/anaconda3/bin" ``` [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Nov 16, 2022 at 12:27 [![Qazi Ammar's user avatar](https://lh5.googleusercontent.com/-4aMPftC4NAk/AAAAAAAAAAI/AAAAAAAAAEY/glwv-sbu7g0/s64-rj/photo.jpg)](https://stackoverflow.com/users/6026338/qazi-ammar) [Qazi Ammar](https://stackoverflow.com/users/6026338/qazi-ammar) 1,6043 gold badges20 silver badges42 bronze badges Comments This answer is useful 8 Save this answer. Show activity on this post. Execute the following command after installing and adding to the path ``` source ~/.bashrc ``` where `source` is a bash shell built-in command that executes the content of the file passed as argument, in the current shell. It runs during boot up automatically. [![CKE's user avatar](https://i.sstatic.net/tcQt9.png?s=64)](https://stackoverflow.com/users/9222996/cke) [CKE](https://stackoverflow.com/users/9222996/cke) 1,63819 gold badges22 silver badges33 bronze badges answered Sep 10, 2018 at 6:24 [![Gursewak Singh's user avatar](https://lh4.googleusercontent.com/-17vENZ4G688/AAAAAAAAAAI/AAAAAAAAJpA/8s1pgbqO2Q8/s64-rj/photo.jpg)](https://stackoverflow.com/users/9466007/gursewak-singh) Comments This answer is useful 6 Save this answer. Show activity on this post. I had the same issue. I just closed and reopened the terminal, and it worked. That was because I installed Anaconda with the terminal open. [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Aug 15, 2018 at 17:01 [![RaphaëlR's user avatar](https://lh5.googleusercontent.com/-Bp5huG4mphw/AAAAAAAAAAI/AAAAAAAAIU0/ZeidGH0ciys/s64-rj/photo.jpg)](https://stackoverflow.com/users/7138267/rapha%C3%ABlr) [RaphaëlR](https://stackoverflow.com/users/7138267/rapha%C3%ABlr) 5627 silver badges9 bronze badges Comments This answer is useful 4 Save this answer. Show activity on this post. I am using a [WSL](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) system. In my case, for the *conda* command to be added to the path, and persist, I had to do the following: ### First: ``` vim ~/.bashrc ``` This will open the .bashrc file using [Vim](https://en.wikipedia.org/wiki/Vim_%28text_editor%29). You should go to the bottom of the file using the arrow keys, click `i` to toggle the insert mode and paste: `export PATH="$PATH:/home/userName/miniconda3/bin"`. After that, save and close Vim using `:wq`. (if you are not comfortable using Vim, you can use the `nano` command instead) ``` nano ~/.bashrc ``` ### Second: ``` source ~/.bashrc ``` ### Third: Close and open the terminal! This should work for everyone. To test if it is working, try: ``` conda --version ``` [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Apr 14, 2023 at 13:20 [![Duarte Elvas's user avatar](https://i.sstatic.net/CaRt0.png?s=64)](https://stackoverflow.com/users/13811701/duarte-elvas) Comments This answer is useful 4 Save this answer. Show activity on this post. If you are using Linux: After installing Anaconda from the *.sh* file (which you can download from <https://www.spyder-ide.org/>): Step 1: Activate the environment in the terminal by entering the below command. ``` source ~/anaconda3/bin/activate ``` Step 2: Type *spyder* in the terminal. You can get the Spyder IDE. ``` spyder ``` [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Jan 10, 2023 at 5:28 [![kiran beethoju's user avatar](https://lh3.googleusercontent.com/a-/AAuE7mB1_cXonuLz-HjgUpZTjKjLkreWDvcVLqZI9182Xw=k-s64)](https://stackoverflow.com/users/11976072/kiran-beethoju) Comments This answer is useful 4 Save this answer. Show activity on this post. I faced this issue on my Mac after updating Conda. The solution was to run the Conda mini installer on top of the existing Conda setup. ``` curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o ~/miniconda3.sh bash ~/miniconda3.sh -bfp ~/miniconda3 ``` On Linux, you can use: ``` curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o ~/miniconda3.sh bash ~/miniconda3.sh -bfp ~/miniconda3 ``` For other versions, you can go to <https://repo.continuum.io/miniconda/> For details, check: *[Conda command not found after running conda update package \#1364](https://github.com/conda/conda/issues/1364)* [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Sep 30, 2017 at 14:53 [![Jeevan's user avatar](https://www.gravatar.com/avatar/d3d6cb3fda2fa7eb057386e7e5ceb583?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/214647/jeevan) [Jeevan](https://stackoverflow.com/users/214647/jeevan) 8,82214 gold badges53 silver badges69 bronze badges Comments This answer is useful 3 Save this answer. Show activity on this post. I had to run the following command to activate the shell: ``` eval "$(/home/username/anaconda3/bin/conda shell.bash hook)" ``` answered May 21, 2021 at 17:53 [![Data Mastery's user avatar](https://lh4.googleusercontent.com/-ki54KKw1fIM/AAAAAAAAAAI/AAAAAAAAAAA/ACHi3rdohpd8cm1Qclo2rXmoC1KQnYVeIg/s64-rj/photo.jpg)](https://stackoverflow.com/users/12181414/data-mastery) [Data Mastery](https://stackoverflow.com/users/12181414/data-mastery) 2,1654 gold badges31 silver badges84 bronze badges Comments This answer is useful 2 Save this answer. Show activity on this post. export PATH="~/anaconda3/bin":\$PATH answered Feb 18, 2021 at 6:04 [![ChrisGClark's user avatar](https://www.gravatar.com/avatar/62e7bc9a795c2945e3c2c731ae5d2748?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/6747088/chrisgclark) 1 Comment [![](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) That is a bit terse. In what context? Where should it be applied? 2023-04-28T20:25:10.137Z+00:00 This answer is useful 2 Save this answer. Show activity on this post. Make sure that you are installing the Anaconda binary that is compatible with your kernel. I was in the same situation. It turned out I have an x64\_86 CPU and was trying to install a 64-bit [POWER8](https://en.wikipedia.org/wiki/POWER8) installer. You can find out the same for your CPU by using the following command. It gives you a basic information about a computer's software and hardware. ``` uname -a ``` <https://www.anaconda.com/download/#linux> The page in the link above displays two different types of 64-bit installers: - 64-bit (x86) installer and - 64-bit (POWER8) installer. [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Oct 14, 2017 at 13:29 [![Taani's user avatar](https://www.gravatar.com/avatar/c9e0613bface5df39521ce66ce3bf626?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/7332499/taani) [Taani](https://stackoverflow.com/users/7332499/taani) 711 silver badge3 bronze badges Comments This answer is useful 1 Save this answer. Show activity on this post. The brute-force way could be ``` if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/root/miniconda3/etc/profile.d/conda.sh" ]; then . "/root/miniconda3/etc/profile.d/conda.sh" else export PATH="/root/miniconda3/bin:$PATH" fi fi ``` Then initialize and test Conda. ``` conda init conda -V ``` Which is what Conda tries to do. Take a look at the end of `~/.bashrc` with `less ~/.bashrc` or with `cat ~/.bashrc` answered May 12, 2021 at 2:04 [![Echo9k's user avatar](https://lh5.googleusercontent.com/-7p2Z1wfeyQ0/AAAAAAAAAAI/AAAAAAAAJSc/HD-1bWS8kBE/s64-rj/photo.jpg)](https://stackoverflow.com/users/10214361/echo9k) [Echo9k](https://stackoverflow.com/users/10214361/echo9k) 5946 silver badges9 bronze badges Comments This answer is useful 1 Save this answer. Show activity on this post. Do the same thing as the suggestion given by bash console, but pay attention that there are some errors in the suggestion (the file path format is incorrect). Paste these two commands in the Bash console for Windows: ``` echo ". C:/Users/mingm/Anaconda3/etc/profile.d/conda.sh" >> ~/.bashrc ``` and ``` echo "conda activate" >> ~/.bashrc ``` After having pasted these two commands, exit the Bash console, reload it and then activate the virtual environment by entering "conda activate your\_env\_name". [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered May 29, 2021 at 10:05 [![Mingming's user avatar](https://lh5.googleusercontent.com/-BpSQgnupq1Y/AAAAAAAAAAI/AAAAAAAAAAA/APUIFaNNNCuL158TSIAChcyL6ghi3L_9hg/mo/s64-rj/photo.jpg)](https://stackoverflow.com/users/7694287/mingming) [Mingming](https://stackoverflow.com/users/7694287/mingming) 4025 silver badges10 bronze badges Comments This answer is useful 1 Save this answer. Show activity on this post. It can be a silly mistake. Make sure that you use `anaconda3` instead of `anaconda` in the export path if you installed it so. [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Jun 10, 2021 at 7:08 [![Balint's user avatar](https://www.gravatar.com/avatar/13d1af91bfc48bdc9319b0facbaacffe?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/5426414/balint) Comments This answer is useful 1 Save this answer. Show activity on this post. This worked on an [M1 Mac](https://en.wikipedia.org/wiki/Apple_M1): To get the user name: ``` echo $USER ``` Then substitute my\_username with the correct one. ``` source /Users/my_username/opt/anaconda3/bin/activate ``` [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Oct 25, 2022 at 8:38 [![Žygimantas's user avatar](https://i.sstatic.net/xUANg.jpg?s=64)](https://stackoverflow.com/users/7451973/%C5%BDygimantas) Comments This answer is useful 1 Save this answer. Show activity on this post. By default, Anaconda and Miniconda will put necessary command alias to the [.bashrc file](https://en.wikipedia.org/wiki/Bash_\(Unix_shell\)#Legacy-compatible_Bash_startup_example) file. All you have to do is to reload added alias inside `~/.bashrc` using this command: ``` source ~/.bashrc ``` [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Jan 28, 2023 at 6:49 [![Ali Akhtari's user avatar](https://www.gravatar.com/avatar/2a70cc696fd4b3d26debfb5ffaea9da2?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/8853364/ali-akhtari) [Ali Akhtari](https://stackoverflow.com/users/8853364/ali-akhtari) 1,3123 gold badges22 silver badges43 bronze badges 1 Comment [![](https://www.gravatar.com/avatar/dbd6250c7018198acb2ab8ebf71c6e73?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/7803991/talita) This works. Alternatively, if you are using zsh, you need to source ~/.zshrc 2023-01-31T08:20:19.19Z+00:00 This answer is useful 1 Save this answer. Show activity on this post. on Windows, select "Anaconda Prompt" instead of the terminal. [![enter image description here](https://i.sstatic.net/JpAR95c2.png)](https://i.sstatic.net/JpAR95c2.png) answered Nov 8, 2024 at 5:07 [![Jaider's user avatar](https://www.gravatar.com/avatar/991498a27b7f3690fbfcb13143052ac9?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/480700/jaider) [Jaider](https://stackoverflow.com/users/480700/jaider) 15\.1k5 gold badges83 silver badges88 bronze badges Comments This answer is useful 0 Save this answer. Show activity on this post. This worked for me on CentOS and miniconda3. Find out which shell you are using `echo $0` `conda init bash` (could be `conda init zsh` if you are using `zsh`, etc.) - this adds a path to `~/.bashrc` Reload command line `sourc ~/.bashrc` OR `. ~/.bashrc` answered Dec 7, 2021 at 21:21 [![frmbelz's user avatar](https://www.gravatar.com/avatar/7fd0d69f764f9e0895e8b6429b47b6d7?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/1496974/frmbelz) [frmbelz](https://stackoverflow.com/users/1496974/frmbelz) 2,69332 silver badges31 bronze badges Comments This answer is useful 0 Save this answer. Show activity on this post. I have encountered this problem lately and I have found a solution that worked for me. It is possible that your current user might not have permissions to anaconda directory, so check if you can read/write there, and if not, then change the files owner by using `chown`. answered Jan 24, 2022 at 14:31 [![k-krakowski's user avatar](https://www.gravatar.com/avatar/febe08c13f3246b8796880b1a8ee9ba8?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/2953340/k-krakowski) Comments This answer is useful 0 Save this answer. Show activity on this post. For Conda \> 4.4 follow this: ``` echo ". /home/ubuntu/miniconda2/etc/profile.d/conda.sh" >> ~/.bashrc ``` Then you need to reload user bash, so you need to log out: ``` exit ``` And then log again. [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Jun 8, 2020 at 6:35 [![jobima's user avatar](https://www.gravatar.com/avatar/4f0739edb06a6f81777e1853586821b0?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/1939376/jobima) [jobima](https://stackoverflow.com/users/1939376/jobima) 5,9501 gold badge23 silver badges18 bronze badges 1 Comment [![](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) What do you mean by *"reload user bash"*? Reload the content of file *.bashrc*? Or something to do with file `/usr/bash`? Or something else? 2023-04-28T20:10:55.48Z+00:00 This answer is useful 0 Save this answer. Show activity on this post. For me uninstalling and reinstalling miniconda did the trick. I did lose all my existing repos but at least the command works now. answered Nov 30, 2023 at 9:02 [![markemus's user avatar](https://www.gravatar.com/avatar/764de0556f5361de7c61862ae7c8198b?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/9095840/markemus) [markemus](https://stackoverflow.com/users/9095840/markemus) 1,82418 silver badges25 bronze badges 1 Comment [![](https://i.sstatic.net/1fPD7.jpg?s=64)](https://stackoverflow.com/users/3536819/murphy1310) lol............ 2024-05-24T03:01:00.88Z+00:00 This answer is useful 0 Save this answer. Show activity on this post. I installed it with sudo, which made it available only to root user. Installing without sudo fixed it and now I can access conda as I wanted answered Oct 15, 2024 at 18:36 [![Roxell's user avatar](https://i.sstatic.net/pJx2o.png?s=64)](https://stackoverflow.com/users/8848219/roxell) Comments This answer is useful \-1 Save this answer. Show activity on this post. on conda prompt try ``` conda init powershell ``` answered Feb 14, 2023 at 14:11 [![fharlup's user avatar](https://www.gravatar.com/avatar/148f0fb5d1656edf944853212c7effc2?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/15235854/fharlup) [fharlup](https://stackoverflow.com/users/15235854/fharlup) 591 silver badge5 bronze badges 1 Comment [![](https://i.sstatic.net/HZ9CL.png?s=64)](https://stackoverflow.com/users/1145388/stephen-ostermiller) If conda isn't already in the path, how can they run that? 2024-04-07T08:24:57.397Z+00:00 This answer is useful \-1 Save this answer. Show activity on this post. Mac OS X: `cd /Users/USER_NAME/anaconda3/bin && ./activate` [![Peter Mortensen's user avatar](https://i.sstatic.net/RIZKi.png?s=64)](https://stackoverflow.com/users/63550/peter-mortensen) answered Nov 28, 2020 at 15:15 [![Ryan Cocuzzo's user avatar](https://i.sstatic.net/4xYkH.jpg?s=64)](https://stackoverflow.com/users/6127225/ryan-cocuzzo) [Ryan Cocuzzo](https://stackoverflow.com/users/6127225/ryan-cocuzzo) 3,2298 gold badges42 silver badges69 bronze badges Comments Start asking to get answers Find the answer to your question by asking. [Ask question](https://stackoverflow.com/questions/ask) Explore related questions See similar questions with these tags.
Shard169 (laksa)
Root Hash714406497480128969
Unparsed URLcom,stackoverflow!/questions/35246386/conda-command-not-found s443