Python error in Mac OS X 10.11.6 -


i have homebrew installed system python under 10.11.6. when try use pip (or pip3) pip not run , gives following error. have suggestions how fix it?

here error messages

echo $python_path /users/paulfons/ase: axion:~ paulfons$ echo $path /opt/local/bin:/opt/local/sbin:/usr/local/cellar/pyenv-virtualenv/20160716/shims:/opt/intel//compilers_and_libraries_2016.1.111/mac/bin/intel64:/opt/intel//documentation_2016/en/debugger//gdb-ia/man/:/users/paulfons/bin:/users/paulfons/ase/tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/x11/bin:/library/tex/texbin:/opt/intel//debugger_2016/gdb/intel64/bin axion:~ paulfons$ pip -v traceback (most recent call last):   file "/usr/local/bin/pip", line 5, in <module>     pkg_resources import load_entry_point   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2927, in <module>     @_call_aside   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2913, in _call_aside     f(*args, **kwargs)   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set     working_set = workingset._build_master()   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 635, in _build_master     ws.require(__requires__)   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 943, in require     needed = self.resolve(parse_requirements(requirements))   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 829, in resolve     raise distributionnotfound(req, requirers) pkg_resources.distributionnotfound: 'pip==8.1.2' distribution not found , required application axion:~ paulfons$ pip3 -v traceback (most recent call last):   file "/usr/local/bin/pip3", line 5, in <module>     pkg_resources import load_entry_point   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2927, in <module>     @_call_aside   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2913, in _call_aside     f(*args, **kwargs)   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set     working_set = workingset._build_master()   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 635, in _build_master     ws.require(__requires__)   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 943, in require     needed = self.resolve(parse_requirements(requirements))   file "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 829, in resolve     raise distributionnotfound(req, requirers) pkg_resources.distributionnotfound: 'pip==8.1.2' distribution not found , required application axion:~  paulfons$ 

you can try reinstall pip, or upgrade using easyinstall. on macbook can run command on terminal:

sudo easy_install-3.5 --upgrade pip 

Comments