Problem scenario
When we moved the python folder, the system’s global variables are still the original python path, at this time in cmd, type python, the system will follow the previous path to find python.exe, pip.exe. so you need to modify the global variables. But many friends then modify the global variables, although python is available, but pip still can not be used, will report the error pip Fatal error in launcher: Unable to create process using {original pip path} {now pip path}.
Problem analysis
This is because pip is actually python code, pip inside the python interpreter path or the original path is not updated, modify the system global variables and will not affect the python path in the pip.exe file.
Problem-solving:
The brute force solution is to directly modify the python path inside pip.exe. Note that pip.exe is a binary file and cannot be modified directly.
1. Download and open binary software (WinHex, hedit)
2. Modify and save the file
Modify and save directly on the right
Read More:
- [Solved] PyCharm Error: Cannot open Local Terminal Failed to start [powershell.exe] in C:\Users\…….
- Pycharm error: original error was: DLL load failed while importing _multiarray _Umath: the specified module could not be found
- [Solved] IDA Start Error: Unexcepted fatal error while intitailizing Python runtime…
- Linux Fatal Python error: Py_Initialize Unable to get the locale encoding
- Full explanation of SYS module of Python
- Python Fatal error: Py_Initialize: unable to load the file system codec
- Using Python error urlopen error unknown URL type: the solution of HTTPS
- How to Solve Error: Error no module “Tkinter”
- [Solved] Pyinstaller packaged exe error: “failed to execute script XXX”
- [Solved] Windows10 Pycharm Use Virtual Environment Error: Cannot set up a python SDK
- Windows10 DOTA_devkit Error: TypeError: ‘>=‘ not supported between instances of ‘NoneType‘ and ‘str‘
- Invalid python sd, Fatal Python error: init_fs_encoding: failed to get the Python cod [How to Solve]
- Error in sitecustomize set PYTHONVERBOSE for traceback KeyError: ‘PYTHONPATH’
- [Solved] Python Project Import Module Error: ModuleNotFoundError
- Python openpyxl excel open zipfile error resolution: zipfile.BadZipFile: File is not a zip file
- [Solved] Error: Please select a valid Python interpreter
- [Solved] Mujoco Error: Missing path to your environment variable.
- Mac Upgrade pip Error OSError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/pip-9.0.1-py2….
- [Solved] Python project runs the open() function error: FileNotFoundError: [Errno 2] No such file or directory
- [CHM] Python: How to Extract CHM Data