Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
26
Help us understand the problem. What is going on with this article?
@funabashi800

AnacondaのPATHの設定

More than 1 year has passed since last update.

はじめに

condaを使用してpythonの仮想環境を構築しようとした際に、

-bash: conda: command not found

となってしまいanacondaのパスが通っていなっかのでその解決法の基礎的なメモ

Anacondaのインストールからの解説は以下を参考


解決法

まずターミナルで以下のコマンドを実行

$ vi ~/.bash_profile

vimが開いたら

  • i (インサートモードにする)
  • 以下のパスを.bash_profileに追加
export PATH=/Users/user_name/anaconda3/bin:$PATH
  • esc(インサートモードの終了)
  • :wq(保存して終了)
  • 以下のコマンドをターミナルで実行して、追加したパスを反映させる
$ source ~/.bash_profile

ここまで終わって、pythonのパスを確認してみると

Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

無事、パスが通っていることが確認できました。

26
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
funabashi800
半導体を研究してる大学生

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
26
Help us understand the problem. What is going on with this article?