LoginSignup

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

Mac(Intel)Python環境を整える(XBP用)

Last updated at Posted at 2022-08-26

Anacondaをインストール

AnacondaというPythonのプログラミング環境をインストールします。

まず、ここ からAnacondaのインストーラーをダウンロードし,ダウンロードしたpkgをダブルクリックして開きます。いろいろ出てきますが、「続ける」「同意する」「OK」ボタンなどでどんどん進んでください。

スクリーンショット 2021-08-21 14.42.58.png

ターミナルで下記のコマンドを実行します。

which python3

下記のようにホームディレクトリの後ろに
/anaconda3/bin/python3
と書かれていればOK!

スクリーンショット 2021-08-19 17.32.37.png

授業で使うパッケージのインストール

授業で使うライブラリをconda install・・・でインストールします。
ライブラリとはプログラミングを感嘆するための便利グッズみたいなものです。
下記のコマンドを1行ずつ実行して、ライブラリをインストールしていきましょう。(時間がかかるものもあります。)
Proceed ([y]/n)?と出てきたら、yを入力してEnter

conda install pandas
conda install scipy
conda install -c conda-forge matplotlib
pip install --upgrade pip
pip install nlplot
pip install janome 

文字化け防止

ここからzipファイルをダウンロードします。

ダウンロードが終わったら、下記のコマンドをコピーして、ターミナルに貼り付けて、実行してください。

unzip ~/Downloads/ipaexg00201.zip -d ~/Library/Fonts/

ターミナルで下記のコマンドを実行します。

rm -rf ~/.matplotlib/
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up