I tried to upgrade python request package on ubuntu 14.4 EC2 instance. after that, which did not give an error, I ran
pip freeze
and received:
ubuntu@ip-172-31-28-196 :~$ pip freeze Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.4', 'console_scripts', 'pip')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_poin return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 11, in <module> from pip.vcs import git, mercurial, subversion, bazaar
As you can see, I tried uninstalling and reinstalling pip in various ways to no avail. How can I make it work again?
edit:
ubuntu@ip-172-31-28-196 :~$ sudo python get-pip.py The directory '/home/ubuntu/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If e xecuting pip with sudo, you may want the -H flag. The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current use r and the cache has been disabled. Please check the permissions and owner of that directory. If exec uting pip with sudo, you may want the -H flag. The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current use r and the cache has been disabled. Please check the permissions and owner of that directory. If exec uting pip with sudo, you may want the -H flag. Collecting pip Downloading pip-6.0.8-py2.py3-none-any.whl (1.3MB) 100% |
source share