pip安装pyspark报错

报错:

 Traceback (most recent call last):
      File "", line 1, in 
      File "/tmp/pip-install-873kMH/pyspark/setup.py", line 224, in 
        'Programming Language :: Python :: Implementation :: PyPy']
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 317
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 372
        replace_conflicting=True,
      File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", l
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", l
        return self.obtain(req, installer)
      File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", l
        return installer(requirement)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 440
        return cmd.easy_install(req)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_insta
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Re

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-

解决办法:
执行:sudo pip install incremental==17.5.0
再安装 pip install pyspark

你可能感兴趣的:(python,spark海量数据分析)