事情起因,执行某个脚本,提示python的某个模块没有安装
./generate_projects.sh
Traceback (most recent call last):
File "tools/buildgen/build-cleaner.py", line 21, in <module>
import yaml
ImportError: No module named yaml
于是我们来安装,但是提示如下:
pip install yaml
/home/osrc/.local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting yaml
Could not fin