Python2 and Python 3 both exist in Windows OS
- OS : windows 10
- Current lab status: Installed python27
- What do i want to do:
3.1) Install python 39 while not uninstall python27 which mean i can use both the two versions
3.2) Install matplotlib - What’s the problems i met
4.1) How to switch python3 and python2
4.2) matplotlib can’t install success
How to Solve the two problems:
- How to switch python 2 and python3
1.1) download python39 package
1.2) Choose customize installation mode as to install it in the same dir with python2
1.3) Change the bellowing two files as bellowing :
1.4) Add Python3 to Environment Path(Python2 has already been added)
1.5) Now open CMD window
Input python3 or input python2 to verify whether it works
2: How to solve matplotlib installation problems
2.1) The official website:
https://matplotlib.org/users/installing.html
Here are two command for reference.
However, after first command executed successfully, the second one can’t be done.
2.2) The error is :
C:\Python39>pip3 install matplotlib
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1106: The handshake operation timed out'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1106: The handshake operation timed out