# 如何安裝BeautifulSoup > [name=ChiuTing] --- 如果直接在vscode用pip指令安裝會無法安裝 理由是路徑問題 **it邦有一篇講得很好的路徑文章(可以參考看看** [https://ithelp.ithome.com.tw/articles/10195501](https://) **作法如下:** [step1:] 先輸入 ```cpp= dir ``` [step2:] 再輸入 ```cpp= pathon ``` 如果路徑對 跑出來會長這樣 ![](https://i.imgur.com/uATtM37.jpg) 不是的話 就是要路徑問題:D -------------------------------------- [step1:] 去到延伸模組安裝這個 Python Path ![](https://i.imgur.com/mnC97YI.png) [step2:] 點終端機 輸入 ```cpp= py -m pip install requests ``` ![](https://i.imgur.com/z7yvr51.png) [step3:] 再輸入 ```cpp= py -m pip install beautifulsoup4 ``` ![](https://i.imgur.com/g7YRYNk.png) (P.S: 不過他會警告一下那個是舊版語法這樣子) (╬゚ д ゚)(黃色部分) [final:] ![](https://i.imgur.com/WjQe4ba.png) 然後剛剛 Step3 上面的圖的這個部分 就是安裝完成的意思啦~ (*°ω°*ฅ)
×
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