简体   繁体   English

离线centos安装psutil

[英]Offline centos install psutil

我正在使用无法连接到互联网的CentOS机器,由于某些原因我需要安装一个python模块psutil,所以我得到了psutil-2.1.3包,但没有明确说明如何手动将它安装在centOS系统中

This is usually pretty simple: 这通常很简单:

  1. Got to PyPi 去了PyPi

  2. Download the .whl file for your Python version and copy it to your server 下载Python版本的.whl文件并将其复制到您的服务器

  3. Run pip install path/to/wheel.whl , depending on your seetings you might need to install this with sudo or from a virtual environment 运行pip install path/to/wheel.whl ,具体取决于您可能需要使用sudo或虚拟环境安装它

  4. ??? ???

  5. Profit! 利润!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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