当前位置:网站首页>Kali installing PIP and pip source changing
Kali installing PIP and pip source changing
2022-07-24 07:22:00 【Under the mountain】
Kali install pip as well as pip Source change
Reference resources
Reference 1 :linux Replace pip Source _ The blog of Min Ming, the owner of Jiangdong flower -CSDN Blog _linux pip Source change
Reference 2 : solve kali 2020 No, pip problem _ Takagi Masao's blog -CSDN Blog _kali No, pip
Preface
Kali edition :2021-02;
I want to install some tools , I don't want to match so many environments , So I feel in kali Installation on , But but ,Kali No, pip… So you need to install , I don't want to check it every time I need it , So I decided to record , This is the origin of this article .
install pip
In the beginning, it was direct apt install , But it failed :
sudo apt install git python3-pip -y

Check again later , Found reference 2 , So handsome, hehe ( Speak after stepping on the pit ), command :
curl -s https://bootstrap.pypa.io/get-pip.py | python3

Installation successful , You can use pip La ~
# see pip edition
pip -V
#pip to update
pip install --upgrade pip
pip Source change
Tsinghua source :
https://pypi.tuna.tsinghua.edu.cn/simple/
For other sources, please refer to the blog of reference 1 , Very invincible ~
Temporary use : Add parameters after downloading the command -i + Source that will do , Such as the installation pygame library :
pip install pygame -i https://pypi.tuna.tsinghua.edu.cn/simple/
Set to pip Default source :
stay /root/.pip Create under directory pip.conf:
cd /root
ls -al # View hidden folders ,/.pip It's a hidden folder , If you can't see it, create it yourself , When doing it, I was careless and forgot , No, just create it , Some words ignore the next step
mkdir /.pip
ls -al
cd /.pip
vi pip.conf
pip.conf The contents are as follows :
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
[install]
trusted-host=https://pypi.tuna.tsinghua.edu.cn
Try loading a bag :

The Internet is too spicy , Also very slow haha .
Kali Source change
I'm too lazy to look for it every time I install a virtual machine ( The memory of fish ), Just write it down here ~
Backup before source change :
sudo cp /etc/apt/sources.list /etc/apt/sources.list_bp
And then modify /etc/apt/sources.list file :
sudo vim /etc/apt/sources.list
Alibaba source is recommended , hold source.list Content deletion in , Copy the following and paste :
#deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
Just save and exit ~
olling main non-free contrib
#deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
Just save and exit ~
Thank you for reading , If you have any questions, please correct them ~
边栏推荐
- Do you really know the judgement sentence?
- One book a day: machine learning and practice -- the road to the kaggle competition from scratch
- django.db.utils.OperationalError: (2002, “Can‘t connect to local MySQL server through socket ‘/var/r
- In the era of e-commerce, what should enterprises do in the transformation of social e-commerce?
- Bookkeeping app: xiaoha bookkeeping 2 - production of registration page
- FPGA realizes reading and writing of axi4 bus
- Flow control statement of avascript
- Blockbuster live broadcast | orb-slam3 series code explanation map points (topic 2)
- Learning notes - distributed transaction theory
- 给一个字符串 ① 请统计出其中每一个字母出现的次数② 请打印出字母次数最多的那一对
猜你喜欢

Unity中使用深度和法线纹理

AMD64 (x86_64) architecture ABI document: upper

C language from entry to soil (I)

Blockbuster live broadcast | orb-slam3 series code explanation map points (topic 2)

【LeetCode】11. 盛最多水的容器 - Go 语言题解

cookie_ session

Feature Selective Anchor-Free Module for Single-Shot Object Detection

周杰伦直播超654万人观看,总互动量破4.5亿,助力快手再破纪录

Mongodb application scenario and model selection (massive data storage model selection)

全国职业院校技能大赛网络安全B模块 Windows操作系统渗透测试
随机推荐
php链路日志方案
Talk about your thoughts about the future
【PTA】团体程序设计天梯赛-练习集 L3题目总结(不全)
Use dichotomy to find specific values from the array
B. Also Try Minecraft
17. What is the situation of using ArrayList or LinkedList?
Raspberry pie change source
Wild pointer, null pointer, invalid pointer
安全工具之hackingtool
Mqtt learning
django.db.utils. OperationalError: (2002, “Can‘t connect to local MySQL server through socket ‘/var/r
Using depth and normal textures in unity
单场GMV翻了100倍,冷门品牌崛起背后的“通用法则”是什么?
C language start
研究会2022.07.22--对比学习
第二部分—C语言提高篇_3. 指针强化
QoS quality of service 4 traffic regulation of QoS boundary behavior
二维平面多段线Y轴最短距离
【行测】图形找规律类题目
C language from entry to soil (III)