简体   繁体   中英

Importing python package from conda environment in VSCode

enter image description here

Somebody please explain why I am not able to import package in VSCode even though I can do it in terminal both in VSCode and in system

Check out https://code.visualstudio.com/docs/python/environments VSCode uses multiple python binaries. Each one has a seperate list of installed modules and packages. By default VSCode uses a custom Anaconda binary. When you invoke the python command, you are using a system wide install of Anaconda. You need to change the binary version of python VSCode is using, to point at the system-wide install, where you installed your modules

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