Sharpen Python skills in the field of cybersecurity.
讓在資安領域我們磨利Python技術。
Let's get started! 開始吧!
sudo apt-get upgrade python3
⭐ *為什麼我們需要在Python使用venv? *| Real Python
擁有分開的環境,我們能讓專案更乾淨易懂、簡單。好的相依性(Dependency)管理,能幫助開發者避免系統汙染(system pollution)、相依性衝突( dependency conflict)...等。
sudo apt-get install python-venv
sudo apt-get install python3.11-venv
建一個directory,隨意取個名字,這裡使用test(任何名字都可)。然後cd進入directory。W
Type the command below to leave.
deactivate
現在設置好虛擬環境了,我們不需要每次都呼叫(invoke) python3
,呼python
即可。
⭐ How to install VS Code in Kali Linux? | Code.Visual Studio.com
以Debian和Ubuntu為基礎的分布(distributions)
sudo apt-get install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >
packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg
/etc/apt/keyrings/packages.microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
Update the package
sudo apt install apt-transport-https
sudo apt update
sudo apt install code # or code-insiders
Python for Kali | infosecscout
venv | Python Doc
Why do you need venv | Real Python
How to install VS Code in Kali Linux? | Visual Studio Code
另有英文版文章