How to run Conda?

后端 未结 30 1648
予麋鹿
予麋鹿 2020-11-22 08:56

I installed Anaconda and can run Python, so I assume that I installed it correctly. Following this introductory documentation, I am trying to install Python v3.3, so I am co

30条回答
  •  渐次进展
    2020-11-22 09:45

    System: macOS

    I installed Anaconda first, and everything worked well. Then I installed iTerm2 and when I typed Python iTerm2 gave me the default Python. Here is how to find your Anaconda Python back:

    1. Open your .zshrc file. For example, vim ~/.zshrc

    2. Then add export PATH="/Users/yourusername/anaconda2/bin:$PATH" to the last line of the file. Note that you need to replace the yourusername to your user name and make sure you have anaconda2. An easy way is to copy this line from ~/.bash_profile

    3. Save the file, close it, relaunch the terminal and now Anaconda Python should be back.

提交回复
热议问题