简体   繁体   中英

No internet access but Pip wants to look for newer version

I'm trying to install matplotlib a server that is sequestered and has no internet connection. When I run pip with this command:

pip.exe install matplotlib-1.5.1-cp27-none-win_amd64.whl --no-index

I get this message:

Could not find a version that satisfies the requirement pyparsing!=2.0.4,>=1.5.6 (from matplotlib==1.5.1) (from versions: ) No matching distribution found for pyparsing!=2.0.4,>=1.5.6 (from matplotlib==1.5.1)

I'm relatively new with this and have only used Pip once or twice before but always with an internet connection. This computer is sequestered on a DoD compound and is for sandbox development only. I have to go through three layers of RDP in order to get to it. I've tried everything I can think of or find but no luck.

Any suggestions are greatly appreciated.

Thanks

On the computer with the internet, use pip wheel matplotlib to download all the wheel files needed for the installation (including dependencies).
Then, on the computer without the internet, use pip install matplotlib --find-links="<directory of the wheel files>" . This will install matplotlib from the local files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM