ERROR: Could not find a version that satisfies the requirement yaml (from versions: none) ERROR: No
之前在网上找了各种资料,cmd安装yaml,网上大部分写的都是pip install yaml
但是执行pip install pyyaml,就可以成功。
D:\pytestLearn>pip install pyyaml
Collecting pyyaml
Downloading PyYAML-6.0-cp38-cp38-win_amd64.whl (155 kB)
|████████████████████████████████| 155 kB 9.7 kB/s
Installing collected packages: pyyaml
Successfully installed pyyaml-6.0
WARNING: You are using pip version 20.2.3; however, version 22.3.1 is available.
You should consider upgrading via the 'c:\users\14860\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.
D:\pytestLearn>
后来才知道,python3.X只能使用pip install pyyaml 来安装。
想要看安装是否成功,输入import pyyaml即可。