首页 > 编程 > Python > 正文

Python安装lz4-0.10.1遇到的坑

2020-02-23 00:10:10
字体:
来源:转载
供稿:网友

因为项目的需求,要 lz4.0.10.1 的,因为本机已经有一个 1.1.0 版本的,所以必须先卸掉,然后我差点没疯了(手动微笑)

sudo pip uninstall lz4Uninstalling lz4-1.1.0: /Library/Python/2.7/site-packages/lz4-1.1.0-py2.7.egg-info /Library/Python/2.7/site-packages/lz4/__init__.py /Library/Python/2.7/site-packages/lz4/__init__.pyc /Library/Python/2.7/site-packages/lz4/block/__init__.py /Library/Python/2.7/site-packages/lz4/block/__init__.pyc /Library/Python/2.7/site-packages/lz4/frame/__init__.py /Library/Python/2.7/site-packages/lz4/frame/__init__.pyc /Library/Python/2.7/site-packages/lz4/frame/_compression.py /Library/Python/2.7/site-packages/lz4/frame/_compression.pyc /Library/Python/2.7/site-packages/lz4/version.py /Library/Python/2.7/site-packages/lz4/version.pycProceed (y/n)? y Successfully uninstalled lz4-1.1.0

准备愉快地装上 0.10.1

sudo pip install lz4==0.10.1
Collecting lz4==0.10.1 Downloading https://files.pythonhosted.org/packages/f5/c6/ef2890b5e287735576e15c1389aa0b9032c9d78ed72385fbd1149af593cd/lz4-0.10.1.tar.gz (92kB) 100% |████████████████████████████████| 92kB 1.8MB/s Complete output from command python setup.py egg_info: Couldn't find index page for 'setuptools_scm' (maybe misspelled?) No local packages or download links found for setuptools-scm Traceback (most recent call last):  File "<string>", line 1, in <module>  File "/private/tmp/pip-build-0IKxUP/lz4/setup.py", line 180, in <module>  'Programming Language :: Python :: 3.6',  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/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 221, in __init__  self.fetch_build_eggs(attrs.pop('setup_requires'))  File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 245, in fetch_build_eggs  parse_requirements(requires), installer=self.fetch_build_egg  File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 580, in resolve  dist = best[req.key] = env.best_match(req, self, installer)  File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 825, in best_match  return self.obtain(req, installer) # try and download/install  File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 837, in obtain  return installer(requirement)  File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 294, in fetch_build_egg  return cmd.easy_install(req)  File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/command/easy_install.py", line 592, in easy_install  raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools-scm')            
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表