Python installation Virtualenvwrapper Error Resolution __python

Source: Internet
Author: User
Tags parent directory

When performing the sudo pip install Virtualenvwrapper, there will be a warning, an error

1, First report yellow warning:

The directory '/users/lvxiujun/library/caches/pip/http ' or its parent directory isn't owned by the current user and the C Ache has been disabled. Please check the permissions and owner of this directory. If executing pip with sudo, your may want sudo ' s-h flag.
The directory '/users/lvxiujun/library/caches/pip ' or its parent directory isn't owned by the current user and caching WH Eels has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, your may want sudo ' s-h flag.


This is because Mac OS X10.11 has a validation feature turned on. System, USR directory is not operational by default, this warning does not affect the operation


2, a bunch of red error:

Found existing Installation:six 1.4.1
Deprecation:uninstalling a distutils installed project (six) has been deprecated and'll is removed in a future version. This is due to the fact that uninstalling a distutils project would only partially uninstall the 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 up, 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 $, in Copystat
Os.chflags (DST, St.st_flags)
OSError: [Errno 1] Operation not permitted: '/var/folders/zf/k8dsbf7d0gxbj8jmtg48g6j80000gn/t/pip-khd5nk-uninstall/ System/library/frameworks/python.framework/versions/2.7/extras/lib/python/six-1.4.1-py2.7.egg-info '


Workaround sudo pip install virtualenvwrapper--upgrade--ignore-installed Six

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.