简体   繁体   中英

Adding path of downloaded Python to Visual Studio Code

Just gone through the process of setting up python and all the installs using cmd and now i want to use

brownie bake

To clone some code and it gives errors as it cant locate brownie... I've set environmental variables for the path (that's how I got it to work in cmd)... I've installed the python extension and chose the python.exe file in my new install in the compiler by clicking the bottom left... How can I make visual studios Code use only the python and all library's I installed?

if i run

python

in the terminal it opens up windows store for python install but i can run my version by using

py

First, Disable the python command to open the windows store:

Search Manage app execution aliases and unselect App Installer of Python:

在此处输入图像描述

Second, You need to check which python you have installed your packages to:

在此处输入图像描述

And make sure in the VSCode you have selected the right interpreter(In the following picture, they are different).

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM