Problem Description:
The Python version that is already installed is 3.6.1, running in the corporate network environment.
When installing a third-party module in CMD pyperclip, the error ' No matching distribution found for Pyperclip '.
As follows:
C:\users\csnow\appdata\local\programs\python\python36\scripts> pip Install pyperclipcollecting Pyperclip retrying (Retry ( total=4, Connect=none, Read=none, redirect=None)) After connection broken by'Connecttimefouterror (<pip._vendor.requests.packages.urllib3.conneCtion. VerifiedhttpsconnectionObjectAt0x0000000003bb5a20,'Connection to PyPI. python.org timed out. (Connect timeout= the)')':/simple/pyperclip/retrying (Retry ( total=3, Connect=none, Read=none, redirect=None)) After connection broken by'Connecttimeouterror (<pip._vendor.requests.packages.urllib3.conneCtion. VerifiedhttpsconnectionObjectAt0x0000000003bb5b70,'Connection to PyPI. python.org timed out. (Connect timeout= the)')':/simple/pyperclip/retrying (Retry ( total=2, Connect=none, Read=none, redirect=None)) After connection broken by'Connecttimeouterror (<pip._vendor.requests.packages.urllib3.conneCtion. VerifiedhttpsconnectionObjectAt0x0000000003bb5c18,'Connection to PyPI. python.org timed out. (Connect timeout= the)')':/simple/pyperclip/retrying (Retry ( total=1, Connect=none, Read=none, redirect=None)) After connection broken by'Connecttimeouterror (<pip._vendor.requests.packages.urllib3.conneCtion. VerifiedhttpsconnectionObjectAt0x0000000003bb5860,'Connection to PyPI. python.org timed out. (Connect timeout= the)')':/simple/pyperclip/retrying (Retry ( total=0, Connect=none, Read=none, redirect=None)) After connection broken by'Connecttimeouterror (<pip._vendor.requests.packages.urllib3.conneCtion. VerifiedhttpsconnectionObjectAt0x0000000003bb54e0,'Connection to PyPI. python.org timed out. (Connect timeout= the)')':/simple/pyperclip/ Could not find a version this satisfies the requirement pyperclip ( from versions:) No matching Distribution found for Pyperclip
Solution Ideas:
Use the ping command to discover that all packages are timeout, that the firewall is blocked, and that the CMD data is not passed through the Web browser proxy.
Replace the network connection, select a network that does not go through the corporate firewall (for example, mobile hotspot), fix the problem, and the PIP installs successfully with the upgrade prompt.
C:\users\csnow\appdata\local\programs\python\python36\scripts> pip Install pyperclipcollecting pyperclip downloading Pyperclip-1.6.0. tar.gzinstalling collected packages:pyperclip Running setup.py install forPyperclip. Donesuccessfully installed Pyperclip -1.6. 0 you areusingPIP version9.0.1, however version9.0.3 isavailable. You should consider upgrading via the'python-m pip install--upgrade pip'command.
The command to run the import module in Python idle was successful (no error occurred).
>>> Import Pyperclip
[Python] Installation Pyperclip error: No matching distribution found for Pyperclip