After installing python at the same time as before, just change the environment variable PATH to
PATH=C:\Python36-32\Scripts\;C:\Python36-32\;C:\Python27\;C:\Python27\Scripts
Then modify the python3 installed file as follows:
C:\Python36-32\Scripts\ Change to C:\Python36-32\Scripts\
C:\Python36-32\ Change to C:\Python36-32\
C:\Python36-32\ Change to C:\Python36-32\
This allows you to use commands such as python python3 pip pip3 directly from the CMD command line.
Since I recently reinstalled my system, I installed python 2.7.13 and python 3.6.0, the latest versions of python2 and python3.
Following the above fix for this method, the python pip python3 command works fine, but pip3 displays the following error when executed:
Fatal error in launcher: Unable to create process using '"'
Apparently the process-related files were not found when the process was created. Let's do something about it.
I found that there are several exe files with the same icon and KB number in the C:\Python36-32\Scripts directory that have different file names and call different functions:
easy_instal3l.exe
easy_install-3.
Based on experience, I guess these EXE files are actually the same EXE file plus different resources or in the field of debugging and cracking called additional resources to execute different python scripts, by the way, I used 7z to open the confirmation of my conjecture.
First go to google for a while to find pip the source code of this exe, looking for a while did not find, I will directly use IDA PRO F5, the logic of this EXE is probably to find the EXE last how many bytes to special symbols to split the beginning of a string and the establishment of the process of additional parameters and execution.
Open it with the HEX editor and go to the end.
Look at the part circled in red, I found that the path is written dead in here, it should be this string appended when python is installed, OK, directly put the
c:\python36-32\ Change to c:\python36-32\ Save.
Then copy C:\Python36-32\ to C:\Python36-32\.
You read that correctly, the n is removed because the original string had 10 characters, and we usually modify EXEs to work properly without data offsets and such.
The error is to ensure the length and position of the string, for laziness I just changed it to This works fine.
The next step is to find the code for this "shell" and the installer what is occasionally attached to this resource, see if you can mention a bug fix to turn him into a python3 location that automatically gets the parent path of the current exe path.
(Apparently python3 was renamed by me, a bad thought)
Related Resource Reference:
/pypa/setuptools/blob/master/
/pypa/setuptools/blob/master/
/dev/peps/pep-0397/
/pypa/distlib/src/e4339220120d334fb9030303b8e919594acb829d/PC/?at=default