VsCode如何集成Anaconda Prompt,不需修改環境變數 - Python

Posted by: bart30508 | in Python | 1 week ago |

以前都用notepadd++開發,用了VsCode才發現真的方便阿!

只不過,在公司電腦上,修改環境變數有些麻煩,conda指令一直失敗(找不到),不過其實只要修改VsCode的設定也可以:

Step1:在VsCode按下CTRL + SHIFT + P

Step2:搜尋open settings

Step3:點選 Preferences: Open Settings (JSON)

image

Step4:添加以下設定

{ ... # any other settings you have already added (remove this line)

"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/K", "C:\\Anaconda3\\Scripts\\activate.bat C:\\Anaconda3"],
"python.condaPath": "C:\\Anaconda3\\Scripts\\conda.exe"

} image

Step5:重啟啟一個Terminal就可以成功使用conda命令了~

image

Reference:

https://stackoverflow.com/questions/54828713/working-with-anaconda-in-visual-studio-code

Currently unrated
 or 

Subscribe

* indicates required

Recent Posts

Archive

2022
2021

Categories

Apache 1

Data Science 2

Dbfit 1

Design Pattern 1

Devops 3

DigitalOcean 1

Django 1

English 3

Excel 5

Flask 3

Git 1

HackMD 1

Heroku 1

Html/Css 1

Linux 4

Machine Learning 2

Manufacture 1

Mezzanine 18

Oracle 1

Postgresql 7

PowerBI 4

Powershell 4

Python 21

SEO 2

SQL Server 51

SQLite 1

Windows 1

database 8

work-experience 1

其他 1

自我成長 1

資料工程 1

Tags

SEO(1) Github(2) Title Tag(2) ML(1) 李宏毅(1) SQL Server(18) Tempdb(1) SSMS(1) Windows(1) 自我成長(2) Excel(1) python Flask(1) python(5) Flask(2)

Authors

bart30508 (146)

Feeds

RSS / Atom

VsCode如何集成Anaconda Prompt,不需修改環境變數 - Python

© COPYRIGHT 2011-2022. Max的文藝復興. ALL RIGHT RESERVED.