美文网首页
Python学习:指定pip源安装库

Python学习:指定pip源安装库

作者: khaos | 来源:发表于2021-04-09 23:21 被阅读0次

PIP国内的一些镜像

M1上,python上无缝安装paramiko,只能用虚拟机,使用pycharm远程开发调试的办法。因此,安装了arm的Ubuntu系统,但发现pip无缝安装第三方库,连接超时,速度非常慢。需要更新国内的源。

阿里云 [https://mirrors.aliyun.com/pypi/simple/](https://mirrors.aliyun.com/pypi/simple/)
中国科技大学 [https://pypi.mirrors.ustc.edu.cn/simple/](https://pypi.mirrors.ustc.edu.cn/simple/)
豆瓣(douban) [http://pypi.douban.com/simple/](http://pypi.douban.com/simple/)
清华大学 [https://pypi.tuna.tsinghua.edu.cn/simple/](https://pypi.tuna.tsinghua.edu.cn/simple/)

临时使用,可以在使用pip的时候在后面加上-i参数,指定pip源为国内源。

pip3 install scapy -i https://pypi.tuna.tsinghua.edu.cn/simple

永久修改源的方法如下:

cat ~/.pip/pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

相关文章

  • Python学习:指定pip源安装库

    PIP国内的一些镜像 M1上,python上无缝安装paramiko,只能用虚拟机,使用pycharm远程开发调试...

  • python用pip安装第三方包慢的解决方法

    解决:pip安装第三方包慢可以通过更换源来解决。 安装单个包时临时指定源 修改python库默认的下载源

  • Python更换pip源至国内源

    将Python的pip源更换成国内的安装源,可以提高Python库的安装速度! Ubuntu 16.04 在 /h...

  • Python包管理器的使用

    实验目的 1、了解Python第三方库安装的基本原理2、学习使用pip安装Python第三方包3、pip工具换源 ...

  • Python镜像仓库

    使用pip install 安装依赖库,会在Python的官方源pypi.python.org/pypi 下载,有...

  • python网页解析之bs4

    python网页解析之bs4 BeautifulSoup安装库 需要将pip源设置为国内源,阿里源,豆瓣源,网易源...

  • 更改pip源 / 解决 ReadTimeoutError: HT

    macOS,pyenv指定了python3.5.2,安装pip3,报错 解决 一番折腾之后,直接指定下载源,解决问...

  • Ubuntu安装Python

    升级Ubuntu安装包 安装python PPA 安装指定版本python 查看python版本 安装pip3

  • Houdini安装pandas库

    使用houdini安装外部库需要先安装pip工具,参考Houdini安装外部python库(pip)[https:...

  • python基础操作

    Python 第三方库安装技巧 Python 第三方库安装技巧 mac 装python库 装pip。然后用pip安...

网友评论

      本文标题:Python学习:指定pip源安装库

      本文链接:https://www.haomeiwen.com/subject/fccgkltx.html