The author's computer system is Win7, and Python2.7 and Python3.6 are installed, but the following error message appears when installing the Python library using pip install XXX directly from the command line:
Fatal error in launcher:unable to create process using ' "'
Workaround:
1. Find the name of the interpreter that corresponds to your Python version
First you need to go to the folder where the corresponding version of Python is installed. Take my Python version for example, this is the interpreter name for my Python2.7 version:
This is the name of the interpreter that corresponds to my Python3.6 version:
2, use "Interpreter name-m pip install XXX" to install the corresponding library
Also take my Python version for example,
If I want to install Python2.7 's Sklearn library, I need to enter the command "python2-m pip install Sklearn"
If I want to install Python3.6 's Sklearn library, I need to enter the command "python-m pip install Sklearn"
Troubleshoot issues that you may experience when you install a Python library with Pip