所以我有Python 2.7.10,我正在尝试运行python脚本。但是,我得到ImportError: No module named requests
。我尝试了pip install requests
,但是我得到了错误-bash: pip: command not found
,因为我已经删除了pip,因为它之前是python 3.5而我想要2.7。
但是,出于某种原因,我无法安装pip。当我sudo easy_install pip
时,我得到以下内容:
Searching for pip
Best match: pip 9.0.1
pip 9.0.1 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
error: [Errno 2] No such file or directory: 'usr/local/bin/pip'
我还有另一种方法可以安装pip吗?