簡體   English   中英

如何為 Python 安裝 yaml package?

[英]How do I install the yaml package for Python?

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml將其安裝在新服務器上,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml package? 我正在運行 Python 2.7。 (操作系統:Debian 喘息)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

我有一個使用 YAML 的 Python 程序。 我嘗試使用pip install yaml在新服務器上安裝它,它返回以下內容:

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

如何為 Python 安裝 yaml 包? 我正在運行 Python 2.7。 (操作系統:Debian Wheezy)

️ 在虛擬環境中或使用 Python 2

pip 安裝pyyaml

️ 對於 python 3(也可能是 pip3.10,具體取決於您的版本)

pip3 安裝 pyyaml

️ 如果你得到權限錯誤

須藤 pip3 安裝 pyyaml

️ 如果您的 PATH 環境變量中沒有 pip

python -m pip 安裝pyyaml

️ 對於 python 3(也可能是 pip3.10,具體取決於您的版本)

python3 -m pip 安裝pyyaml

️ 適用於 Anaconda

conda install -c conda-forge pyyaml

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM