Installing a package in Microsoft Visual Studio Code
Автор: Pranav Bhounsule
Загружено: 2024-08-29
Просмотров: 3294
Описание:
1) Open microsoft visual studio code
2) In terminal type
python -m pip install {package_name}
where {package name} should be replaced with the proper name.
To install numpy use: python -m pip install numpy
To install matplotlib use: python -m pip install matplotlib
3) Close and open Microsoft visual studio code
4) Create a new python file with a single line
import {package_name}
save and run the code.
If the package was successfully installed, you should see any errors in the output window.
Thanks to Miguel Moreno for helping to make this video.
NOTE:
1) The python path may not be standard path. In which case you need to first type
where python, this will bring the python path, something like this: full_path/python. Now use
full_path/python -m pip install {package_name}
2) Python might be recognized as python3. In this case, try
python3 -m pip install {package_name}
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: