It's because your pip installs to C:\users[...] and you try to use python
from D:\Python - which i believe is different environement.
You can change environment in VSCode by pressing Ctrl
+ Shift
+ P
, write Python and select Python: Select interpreter
.
The other solution is to install these libs into D:\python by: D:/Python/python.exe -m pip install <pack>
.
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.