Home >Development Tools >VSCode >Missing libraries when using python with vscode in ubuntu

Missing libraries when using python with vscode in ubuntu

王林
王林Original
2020-02-12 13:37:423505browse

Missing libraries when using python with vscode in ubuntu

First find the pip.exe file. Mine has this file after installing the official python3.7. The path is
C:\Users\xp\AppData\Local \Programs\Python\Python37\Scripts

Then open cmd and enter the path to the file

cd C:\Users\xp\AppData\Local\Programs\Python\Python37\Scripts

Missing libraries when using python with vscode in ubuntu

Then enter:

.\pip install 库名

For example, if I want to install a library named "requests", just enter:

.\pip install requests

and then wait for the installation to complete.

Recommended related articles and tutorials: vscode tutorial

The above is the detailed content of Missing libraries when using python with vscode in ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn