pip离线安装第三方库包(pandas)
3.确保离线机器上面也安装了pandas的所有依赖,如果依赖包很多,需要根据提示收到下载和安装每一个。2.拷贝到离线机器,假设保存在/path/to/package下面。1.在有网络的机器上,找出下载的pandas及其依赖包。
1.在有网络的机器上,找出下载的pandas及其依赖包
pip download pandas -d /path/to/save
2.拷贝到离线机器,假设保存在/path/to/package下面
pip install --no-index --find-links=/path/to/packages pandas
3.确保离线机器上面也安装了pandas的所有依赖,如果依赖包很多,需要根据提示收到下载和安装每一个
pip3离线更新
pip3安装软件提示:
Command "/usr/local/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wa423zyr/pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-3m95s8x8/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-wa423zyr/pillow/
You are using pip version 10.0.1, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command
1.现在一台可以上网的机器上面
[root@edatest ~]# pip install --upgrade pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618) - skipping
Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages
[root@edatest ~]# pip3 install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 14.3MB/s
Installing collected packages: pip
用此地址下载离线包,上传到离线电脑安装
[root@simsrv2 ~]# pip3 install --upgrade pip-21.3.1-py3-none-any.whl
更多推荐


所有评论(0)