python 0219

 

Terminal Command line: processing the file path spaces:

Double quotes path, such as: cd "c: program files"

 

报错:ModuleNotFoundError: No module named 'requests'

Cause: import database requests, as follows:

 

python import requests library:

1. Locate the python installation directory:

In the terminal into the Python environment, and then click Run: import sys, sys.path, you can get the installation directory

2. Switch to the next file in the installation scripts directory, run the command in the terminal: pip install requests, can be installed successfully

 

Guess you like

Origin www.cnblogs.com/George19950505/p/12332729.html