我有一个使用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)
pip install pyyaml
在实际脚本中导入时应该写成import yaml
。 - kevin_theinfinityfund