--- title: Python 環境安裝設定 - Anaconda tags: Anaconda description: 使用文字版安裝,參考自https://hackmd.io/fL_ku6DXTeqYATb8cB5jQA --- # Python 環境安裝設定 快速索引~作業系統: - [Mac](#Mac) - [Windows](#Windows) --- ## Mac 使用Command line 安裝 - [Step 1: 安裝 Anaconda](#Step-1-安裝-Anaconda) - [Step 2: 開啟 jupyter notebook,開心撰寫 Python](#Step-2-開啟-jupyter-notebook,開心撰寫-Python) - [Step 3:python 套件管理](#Step-3-python-套件管理) ### Step 1: 安裝 Anaconda #### 1-1 下載 下載 [Anaconda](https://www.anaconda.com/distribution/#download-section)  #### 1-2 開終端機 打開 終端機   #### 1-3 於終端機安裝 於終端機輸入 ```bash ``` 並將下載好的.sh檔案拖移至此  按下 enter 執行  #### 1-4 一堆下一步 按下 enter 繼續  按空白鍵移動至最下,輸入```yes```並 enter  按 enter 以預設路徑安裝  按 enter 幫你自動設定 bash  輸入 ```yes``` 並 enter,安裝 VScode  安裝完畫面 #### 1-5 測試是否安裝成功 ==重開== 終端機,輸入```conda --version```,若出現版本號代表安裝成功  ### Step-2-開啟-jupyter-notebook,開心撰寫-Python 於終端機輸入 ```jupyter lab``` 並 enter,開心開啟 jupyter 準備進入 Python 的世界吧!   --- ## Windows 使用GUI安裝 - [Step 1: 安裝 Anaconda](#Step-1-%E5%AE%89%E8%A3%9D-Anaconda%EF%BC%88Win%EF%BC%89) - [Step 2: 開啟 jupyter notebook,開心撰寫 Python](#Step-2-%E9%96%8B%E5%95%9F-jupyter-notebook%EF%BC%8C%E9%96%8B%E5%BF%83%E6%92%B0%E5%AF%AB-Python%EF%BC%88Win%EF%BC%89) - [Step 3:python 套件管理](#Step-3-python-套件管理) ### Step 1: 安裝 Anaconda(Win) #### 1-1 下載 下載 [Anaconda](https://www.anaconda.com/distribution/#download-section)  #### 1-2 打開安裝檔  #### 1-3 一直按下一步     ==重要== 記得點選新增```環境變數```    #### 1-4 安裝Visio Studio Code    ### Step 2: 開啟 jupyter notebook,開心撰寫 Python(Win) #### 2-1 打開Anaconda Navigator   #### 2-2 打開Jupyter lab   --- ## Python 套件管理 ### Step 3 python 套件管理 Python 之所以強大易用,就是因為前人已經寫好非常多**套件**,我們只要**使用**它,就可以站在巨人的肩膀上前進。 Anaconda 就是一套用於管理 Python 套件的工具,它已預設幫我們安裝好常用套件,可用 ```conda list``` 查看。 - [安裝新的套件](#安裝新的套件) - [查看基本資料](#看看基本資訊) #### 安裝新的套件 看到有個新的套件可以用,我們想裝,安裝就直接: ```conda install 套件名稱``` 或使用pip ```pip install 套件名稱``` #### 看看基本資訊 看看我們到底做了多少個 Python 環境。 ```conda info -e``` 現在這個環境裝的套件。 ```conda list``` 我怎麼知道 xxx 套件 conda 裡有沒有? ```conda search 套件名稱``` 參考網站: [Anaconda 中的虛擬環境及套件管理](http://yenlung-blog.logdown.com/posts/257347-anaconda-in-the-virtual-environment-and-package-management) [Conda documentation](https://conda.io/docs/)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up