关于python的Requirement.parse(';six>;=1.6.0';)版本

关于python的Requirement.parse(';six>;=1.6.0';)版本,python,Python,当我运行此逗号时: sudopip安装笔记本 这就是错误: The directory '/Users/wangfei/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

当我运行此逗号时:

sudopip安装笔记本

这就是错误:

 The directory '/Users/wangfei/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/wangfei/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.
Collecting Notebook
  Downloading notebook-4.4.1-py2.py3-none-any.whl (6.9MB)
    100% |████████████████████████████████| 6.9MB 162kB/s 
Collecting jinja2 (from Notebook)
  Downloading Jinja2-2.9.5-py2.py3-none-any.whl (340kB)
    100% |████████████████████████████████| 348kB 3.8MB/s 
Requirement already satisfied: traitlets in /Library/Python/2.7/site-packages (from Notebook)
Requirement already satisfied: ipython-genutils in /Library/Python/2.7/site-packages (from Notebook)
Collecting ipykernel (from Notebook)
  Downloading ipykernel-4.5.2-py2.py3-none-any.whl (98kB)
    100% |████████████████████████████████| 102kB 6.4MB/s 
Collecting nbconvert (from Notebook)
  Downloading nbconvert-5.1.1-py2.py3-none-any.whl (372kB)
    100% |████████████████████████████████| 378kB 2.6MB/s 
Collecting jupyter-client (from Notebook)
  Downloading jupyter_client-4.4.0-py2.py3-none-any.whl (76kB)
    100% |████████████████████████████████| 81kB 4.6MB/s 
Collecting nbformat (from Notebook)
  Downloading nbformat-4.2.0-py2.py3-none-any.whl (153kB)
    100% |████████████████████████████████| 153kB 6.0MB/s 
Collecting tornado>=4 (from Notebook)
  Downloading tornado-4.4.2.tar.gz (460kB)
    100% |████████████████████████████████| 460kB 2.1MB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/tmp/pip-build-n8SRPH/tornado/setup.py", line 184, in <module>
        **kwargs
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 320, in __init__
        _Distribution.__init__(self, attrs)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 287, in __init__
        self.finalize_options()
      File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 386, in finalize_options
        ep.require(installer=self.fetch_build_egg)
      File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 2307, in require
        items = working_set.resolve(reqs, env, installer)
      File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 854, in resolve
        raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.VersionConflict: (six 1.4.1 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python), Requirement.parse('six>=1.6.0'))

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-n8SRPH/tornado/
lisicongdeMBP:pro wangfei$ 
目录“/Users/wangfei/Library/Caches/pip/http”或其父目录不属于当前用户,缓存已被禁用。请检查该目录的权限和所有者。如果使用sudo执行pip,您可能需要sudo的-H标志。
当前用户不拥有目录“/Users/wangfei/Library/Caches/pip”或其父目录,并且已禁用缓存控制盘。检查该目录的权限和所有者。如果使用sudo执行pip,您可能需要sudo的-H标志。
收藏笔记本
下载notebook-4.4.1-py2.py3-none-any.whl(6.9MB)
100% |████████████████████████████████| 6.9MB 162kB/s
收集jinja2(来自笔记本)
下载Jinja2-2.9.5-py2.py3-none-any.whl(340kB)
100% |████████████████████████████████| 348kB 3.8MB/s
已满足要求:traitlets in/Library/Python/2.7/site-packages(来自笔记本)
已满足要求:ipythongenutils in/Library/Python/2.7/site-packages(来自笔记本)
收集ipykernel(来自笔记本)
下载ipykernel-4.5.2-py2.py3-none-any.whl(98kB)
100% |████████████████████████████████| 102kB 6.4MB/s
收集nbconvert(从笔记本中)
下载nbconvert-5.1.1-py2.py3-none-any.whl(372kB)
100% |████████████████████████████████| 378kB 2.6MB/s
收集jupyter客户端(从笔记本)
下载jupyter_client-4.4.0-py2.py3-none-any.whl(76kB)
100% |████████████████████████████████| 81kB 4.6MB/s
收集格式(来自笔记本)
下载nbformat-4.2.0-py2.py3-none-any.whl(153kB)
100% |████████████████████████████████| 153kB 6.0MB/s
收集龙卷风>=4(来自笔记本)
下载tornado-4.4.2.tar.gz(460kB)
100% |████████████████████████████████| 460kB 2.1MB/s
从命令python setup.py egg_info完成输出:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/private/tmp/pip-build-n8SRPH/tornado/setup.py”,第184行,在
**夸尔斯
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py”,第111行,在安装程序中
_设置\u分布=dist=klass(属性)
文件“/Library/Python/2.7/site packages/setuptools/dist.py”,第320行,在__
_分布。初始化(自,属性)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py”,第287行,在__
self.finalize_选项()
文件“/Library/Python/2.7/site packages/setuptools/dist.py”,第386行,在finalize_选项中
ep.require(安装程序=self.fetch\u build\u egg)
文件“/Library/Python/2.7/site-packages/pkg_-resources/_-init__.py”,第2307行,在require中
项目=工作组解决(需求、环境、安装程序)
文件“/Library/Python/2.7/site packages/pkg_resources/_init__.py”,第854行,在resolve中
提升版本冲突(dist,req)。带有上下文(dependent\u req)
pkg_resources.VersionConflict:(六个1.4.1(/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/Python),Requirement.parse('six>=1.6.0'))
----------------------------------------
命令“python setup.py egg_info”在/private/tmp/pip-build-n8SRPH/tornado中失败,错误代码为1/
李世康:亲王菲$

如何解决此问题?

您安装了六个
1.4.1
,但模块需要
1.6
或更高版本。运行
sudopip安装--UpgradeSix
应该可以解决您的问题