Linux version upgrade: 1. First, confirm that the Python version that comes with the Linux operating system is consistent with the version you need All Python versions are available at https://www.python.org/ftp/python/ Select Download 2. wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz to download 3. Decompression tar -zxvf Python-2.7.11.tgz Enter the Python-2.7.11 directory and enter
4. Check whether the Python version is the system default version at this time implement:
Pip Installation 1. A get-pip.py is provided in python; the following is the address https://bootstrap.pypa.io/get-pip.py 2. Execute curl https://bootstrap.pypa.io/get-pip.py | python to download and install in Linux This is very convenient. You can pack whatever you want. Pip install xxx Note: After upgrading the Python version, your yum command may not work because the yum command is written in Python. # vi /usr/bin/yum #Open the yum command file and change the first line of script startup address Change it to /usr/bin/python2.6 in step 4 above and it will be ok Supplementary installation of pip under Windows: Quick method: Find the C:\Python27\Scripts directory: Run pip upgrade: When we use pip to install modules, sometimes the pip version is too low One command solves: python -m pip install -U pip Both Linux and Windows support this command Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: MySQL variable declaration and stored procedure analysis
>>: How to delete table data in MySQL
The installation tutorial of mysql 8.0.11 winx64 ...
This article example shares the specific code of ...
Dynamic rem 1. First, let’s introduce the current...
Today, the company's springboot project is re...
Table of contents Mainly used Postman functions D...
In many projects, it is necessary to implement th...
First is the idea We use the <input type="...
In MySQL, you may encounter the problem of case s...
ENV: [root@centos7 ~]# uname -r 3.10.0-514.el7.x8...
1. MySQL installed via rpm package service mysqld...
The outermost boxF rotates 120 degrees, the secon...
Preface The mysql module (project address is http...
Table of contents Previous 1. What is setup synta...
1. Time difference functions (TIMESTAMPDIFF, DATE...
Recently, I encountered a problem in the process ...