pip freeze >requirements.txt报错Fatal error in launcher: Unable to create process

According to [Flask Web Development: Python-based Web Application Development Battle] section 7.5, to test,

I am using pip freeze >requirements.txt and the following error is reported:

Fatal error in launcher: Unable to create process using '"'

 

1. I first entered the dos window with cmd, then entered the project, entered the command, and reported an error!

 

 2. I entered in the PyCharm window, and the same error was reported,

 

3. Correct operation, cmd enters the Dos command window, enters the Python installation directory, and operates

 

4. The final export is successful!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326116346&siteId=291194637