python安装virtualenvwrapper报错解决办法
来源:互联网 发布:代理商授权书php源码 编辑:程序博客网 时间:2024/06/05 07:14
在执行 sudo pip install virtualenvwrapper时候,会有一个警告,一个报错
1、首先报黄色警告:
The directory '/Users/lvxiujun/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/lvxiujun/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
这是因为 mac OS X10.11 开启了一个验证功能。 System、Usr目录 默认情况下不能操作的,这个警告不影响操作
2、一堆红色报错:
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will 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 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: '/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'
解决办法 sudo pip install virtualenvwrapper --upgrade --ignore-installed six
- python安装virtualenvwrapper报错解决办法
- 转载一个pip安装virtualenvwrapper报错的解决办法
- virtualenvwrapper配置报错
- python 安装virtualenv和virtualenvwrapper
- MacOS安装virtualenvwrapper出错的解决办法
- ubuntu-python-virtualenvwrapper-django全程安装
- windows下安装Python virtualenvwrapper-win
- python virtualenvwrapper
- python 报错解决办法
- win7 64下安装mysql-python报错的解决办法
- win7 64下安装mysql-python报错的解决办法
- [转]windows下安装Python虚拟环境virtualenvwrapper-win
- [转]windows下安装Python虚拟环境virtualenvwrapper-win
- windows下安装Python虚拟环境virtualenvwrapper-win
- windows下安装Python虚拟环境virtualenvwrapper-win
- docker 安装报错,解决办法
- python virtualenvwrapper虚拟环境
- python:virtualenv、virtualenvwrapper
- Android Studio 设置代码页的背景图片
- 进程线程简介
- maven--私服的搭建(Nexus的使用)
- 微信小程序 三级联动省市区
- hdu5972_Regular Number_快速匹配+bitset
- python安装virtualenvwrapper报错解决办法
- 点在任意直线上的投影点
- JavaSE 异常处理
- SpringMVC返回json数据的三种方式
- usb免驱动之UVC
- dubbo学习资源
- 数据结构:队列
- ERROR与EXCEPTION的区别
- echarts 种 legend 的相关问题