温馨提示×

ubuntu能装哪些python工具

小樊
44
2026-09-07 12:12:41
栏目: 编程语言

在 Ubuntu 上可以安装的 Python 工具非常丰富,下面按用途分类给你一个实用清单,并附带常见安装方式(以 Ubuntu 20.04/22.04 为例)。


一、Python 运行与版本管理

  • Python 解释器
    sudo apt install python3 python3-pip
    
  • 虚拟环境
    sudo apt install python3-venv
    python3 -m venv venv
    
  • pyenv(多版本管理)
    sudo apt install pyenv
    
  • conda / miniconda / anaconda
    wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    bash Miniconda3-latest-Linux-x86_64-linux-x64.sh
    

二、包管理与依赖工具

  • pip / pipx
    sudo apt install python3-pip
    python3 -m pip install --user pipx
    
  • poetry(项目依赖管理)
    pipx install poetry
    
  • pipenv
    pipx install pipenv
    

三、开发 & 编辑工具

  • IDE
    • PyCharm(官方下载)
    • VS Code(sudo snap install code
  • 编辑器
    • vim / neovim
    • sublime-text
  • Jupyter
    pip install jupyterlab
    

四、Web 开发

  • Flask
    pip install flask
    
  • Django
    pip install django
    
  • FastAPI
    pip install fastapi uvicorn
    
  • Gunicorn / Nginx
    sudo apt install gunicorn nginx
    

五、数据科学 & AI

  • NumPy / Pandas
    pip install numpy pandas
    
  • Matplotlib / Seaborn
    pip install matplotlib seaborn
    
  • Scikit-learn
    pip install scikit-learn
    
  • PyTorch / TensorFlow
    pip install torch
    pip install tensorflow
    

六、爬虫 & 自动化

  • requests
  • BeautifulSoup
  • Scrapy
    pip install scrapy
    
  • Selenium
    pip install selenium
    

七、测试 & 质量工具

  • pytest
    pip install pytest
    
  • black / flake8 / isort
    pip install black flake8 isort
    
  • mypy(类型检查)
    pip install mypy
    

八、系统 & 运维工具

  • psutil
  • paramiko(SSH)
  • fabric
  • ansible(Python 写)
    sudo apt install ansible
    

九、GUI 开发

  • Tkinter
    sudo apt install python3-tk
    
  • PyQt / PySide
    pip install pyqt5
    

如果你愿意,可以告诉我:

  • 你是 新手 / 开发者 / 运维 / 科研
  • 主要用来 写代码 / 跑模型 / 建网站 / 自动化

我可以直接给你一套最适合你的 Ubuntu Python 工具清单

0