# 投影片範例
### 胡老師上課講義Github(https://github.com/joshhu/mustwebcrawler2023)
---
## 安裝環境
- 上網安裝python3.11.1 [[下載](https://www.python.org/ftp/python/3.11.3/python-3.11.3-amd64.exe)]
- 勾選**add python.exe to PATH**
- 選擇**custom installation**
- 點選**Disable path length limit**
- 到**Microsoft store** 安裝 **Windows Terminal**
---

---
- 安裝pipenv
- 使用**cmd** (確認在家目錄C:\Users\Administrator)
- **mkdir workspace**
- **cd workspace**
- **pip install pipenv**
- **python.exe -m pip install --upgrade pip** (更新pipenv)
---

---

---
- 建立虛擬環境
- **pipenv install requests**
- **pipenv shell**
- **python**
- **import requests** (沒有錯誤訊息,代表進入虛擬環境成功)
---

---
- 開啟VS Code
- 右下角選擇3.11.3 64-bit選擇環境
- 選擇PipEnv環境

---

---
- 遭遇錯誤訊息處理方式
- 開啟powershell
- 輸入set-executionpolicy remotesigned
- 選擇 (A)

---
{"metaMigratedAt":"2023-06-18T03:22:02.741Z","metaMigratedFrom":"YAML","title":"投影片範例","breaks":true,"contributors":"[{\"id\":\"ef0225b9-6c2a-4012-82c9-fa1031d2c4db\",\"add\":1226,\"del\":56}]","description":"上網安裝python3.11.1 [下載]"}