Home>Article>Backend Development> What to do if there is no scripts folder when installing python
This time I will bring youHow to deal with the scripts folder when installingpython, and what are theprecautions when installing python without the scripts folder, the following is a practical case, let’s take a look.
When installing Python 2.7, the scripts folder was not generated many times, resulting in the inability to use pip.
After some tossing around, I found a solution.
What is unacceptable is that as long as the installation package I give will not generate a scripts folder, there should be a problem with my installation package. I suggest this problem arise. Babies, please change the installation package first. If you still have this error after changing it, you can see how I solved it, for reference only.
1 Go to the official website to download the ez_setup.py file
2 cmd, then switch to the corresponding path and execute the command python ez_setup.py. After completion, scripts will be generated Folder
3 Switch to the scripts folder, install pip, enter the command: easy_install.exe pip
4 Then configure the environmentvariables
Believe it or not After reading the case in this article, you have mastered the method. For more exciting information, please pay attention to other related articles on the PHP Chinese website!
Recommended reading:
How to batch read txt files into DataFrame format in Python
How to implement HMacMD5 encryption algorithm in Python
The above is the detailed content of What to do if there is no scripts folder when installing python. For more information, please follow other related articles on the PHP Chinese website!