【Anaconda】Prompt 上で Git コマンドを実行する方法。
Anaconda のコマンドプロンプト(Anaconda Prompt)上で、Git Hub からダウンロードなどの Git コマンドを実行できるようにしたときのメモです。
まず、Anaconda Prompt を立ち上げます。
以下のコマンドを実行して、Git をインストールします。
1 |
> conda install git |
コマンドプロンプト上に以下のような出力がされ、無事にダウンロードとインストールができました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: C:\Users\XXXX\anaconda3 added / updated specs: - git The following packages will be downloaded: package | build ---------------------------|----------------- conda-4.10.3 | py38haa95532_0 2.9 MB git-2.32.0 | haa95532_1 50.9 MB ------------------------------------------------------------ Total: 53.8 MB The following NEW packages will be INSTALLED: git pkgs/main/win-64::git-2.32.0-haa95532_1 The following packages will be UPDATED: conda 4.9.2-py38haa95532_0 --> 4.10.3-py38haa95532_0 Proceed ([y]/n)? Downloading and Extracting Packages conda-4.10.3 | 2.9 MB | ############################################################################ | 100% git-2.32.0 | 50.9 MB | ############################################################################ | 100% Preparing transaction: done Verifying transaction: done Executing transaction: | DEBUG menuinst_win32:__init__(198): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Users\XXXX\anaconda3', env_name: 'None', mode: 'user', used_mode: 'user' DEBUG menuinst_win32:create(323): Shortcut cmd is C:\Users\shion\anaconda3\python.exe, args are ['C:\\Users\\XXXX\\anaconda3\\cwp.py', 'C:\\Users\\XXXX\\anaconda3', 'C:\\Users\\XXXX\\anaconda3\\Library\\bin\\bash.exe', '--login', '-i', '--'] done |
実際に、「git clone」コマンドを使ってみました。
1 |
> git clone https://github.com/GunhoChoi/FusionNet_Pytorch |
1 2 3 4 5 6 7 |
Cloning into 'FusionNet_Pytorch'... remote: Enumerating objects: 147, done. remote: Counting objects: 100% (17/17), done. remote: Compressing objects: 100% (3/3), done. remote: Total 147 (delta 14), reused 14 (delta 14), pack-reused 130 Receiving objects: 100% (147/147), 8.04 MiB | 512.00 KiB/s, done. Resolving deltas: 100% (60/60), done. |
無事にGit Hub からダウンロードできました。
関連記事
-
-
【Atom エディタ】Python で Matplotlib のグラフを Atom 上に表示させる方法。
Atom エディタで Python の Matplotlib ライブラリを使って、Atom 上にグラ
-
-
【Pandas】 DataFrame のある列の最大値を含む行のインデックス値を取得する方法。
今回は、Pandas の DataFrame において、ある列で最大値を求めて、その最大値をもつ行に
-
-
【Python】 DataFrame の特定の列で出現回数をカウントして降順でソートする方法。
Python で DataFrame 型の特定の列を指定して、対象列の文字列の出現回数をカウントして
-
-
【matplotlib】 Python で折れ線グラフを描く方法。
今回は、Python の matplotlib というライブラリを使って簡単に折れ線グラフを描く方法
-
-
【Pandas】 DataFrame で2行の列ごとの差を計算する方法【Python】
今回は、Pandas の DataFrame で、2行間の列ごとの値の差を計算し、その結果を Dat
-
-
【Linux】 ローカルに Python をインストールする方法。
今回は、Linux サーバに、root 権限なしで、ローカルに Python をインストールした方法
-
-
python 2.7 を Windows 64bit OS にインストールした。
python 2.7 を Windows にインストールしたときのメモです。 Python に
-
-
【Python】漢字を分解するライブラリを使ってみた【部首分解】
Python で漢字を部首やさらに細かい部分に分解してくれるライブラリがあったので使ってみました。
-
-
【OpenCV】画像の顔部分を検出する方法【Python】
OpenCV を使って、Python で画像から顔部分の検出を行ったときのメモです。 Anac
-
-
【Python】pip3 で「cannot import name ‘main’」エラーが出たときの対処法。
Python でライブラリをインストールする際に、pipを使います。 Python2 と Py