deepin操作系统安装pip

安装pip

sudo apt install python3-pip

更换pip源

mkdir ~/.pip
vi ~/.pip/pip.conf

使用阿里云镜像,写入以下内容:

[global]
index-url =  https://mirrors.aliyun.com/pypi/simple

之后在英文输入法下输入: + w + q + Enter 退出文件编辑

升级pip

pip3 install -U pip

使用

例如安装包

pip3 install pandas

参考资料

https://www.jianshu.com/p/0847179ab380

posted @ 2022-06-18 15:01  tiansz  阅读(349)  评论(0编辑  收藏  举报