python - Error installing virtualenvwrapper -




i'm getting error shown below trying install virtualenvwrapper. doing wrong?

i'm using mac osx. i'm installing using pip sudo. same error if use pip without sudo

last login: tue aug 22 09:45:59 on ttys001 john:~ tcl$ sudo pip install virtualenvwrapper password: directory '/users/tcl/library/caches/pip/http' or parent directory not owned current user , cache has been disabled. please check permissions , owner of directory. if executing pip sudo, may want sudo's -h flag. directory '/users/tcl/library/caches/pip' or parent directory not owned current user , caching wheels has been disabled. check permissions , owner of directory. if executing pip sudo, may want sudo's -h flag. collecting virtualenvwrapper   downloading virtualenvwrapper-4.7.2.tar.gz (90kb)     100% |████████████████████████████████| 92kb 1.2mb/s  requirement satisfied: virtualenv in /library/python/2.7/site-packages (from virtualenvwrapper) requirement satisfied: virtualenv-clone in /library/python/2.7/site-packages (from virtualenvwrapper) collecting stevedore (from virtualenvwrapper)   downloading stevedore-1.25.0-py2.py3-none-any.whl requirement satisfied: pbr!=2.1.0,>=2.0.0 in /library/python/2.7/site-packages (from stevedore->virtualenvwrapper) collecting six>=1.9.0 (from stevedore->virtualenvwrapper)   downloading six-1.10.0-py2.py3-none-any.whl installing collected packages: six, stevedore, virtualenvwrapper   found existing installation: 6 1.4.1     deprecation: uninstalling distutils installed project (six) has been deprecated , removed in future version. due fact uninstalling distutils project partially uninstall project.     uninstalling six-1.4.1: exception: traceback (most recent call last):   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main     status = self.run(options, args)   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run     prefix=options.prefix_path,   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in install     requirement.uninstall(auto_confirm=true)   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall     paths_to_remove.remove(auto_confirm)   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove     renames(path, new_path)   file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, in renames     shutil.move(old, new)   file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/shutil.py", line 302, in move     copy2(src, real_dst)   file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/shutil.py", line 131, in copy2     copystat(src, dst)   file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/shutil.py", line 103, in copystat     os.chflags(dst, st.st_flags) oserror: [errno 1] operation not permitted: '/tmp/pip-ttcbys-uninstall/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/six-1.4.1-py2.7.egg-info' john:~ tcl$  

i'm not seeing specific error in google. enter image description here

i lot of results searching less specific query:

"sudo pip install virtualenvwrapper" error 

however these results have variety of solutions (workarounds) i'm not sure appropriate current problem.

i ran exact problem sometime back. following 2 steps solved problem:

  1. use -h flag sudo command
  2. ignore installation of "six" package this

    pip install virtualenvwrapper --ignore-installed six

hope helps. on different note, better install through brew package manager.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -