Python:Invalid environment marker:python_version<2.7问题解决方案
2017-12-22 19:14
573 查看
依赖信息:
操作系统:CentOS 7
Python:2.7.12
当用pip 或者easy_install 命令安装相关依赖的时候,报如下错误:
Invalid environment marker:python_version<2.7
可是当前系统的python版本命名是2.7的,所以很是诡异。
最后排查才发现,是因为系统中setuptools的版本过低,导致无法识别到本机安装的python。
解决办法:
升级setuptools,即可;命令如下:
pip install --upgrade setuptools -i http://pypi.mirrors.ustc.edu.cn/simple
操作系统:CentOS 7
Python:2.7.12
当用pip 或者easy_install 命令安装相关依赖的时候,报如下错误:
Invalid environment marker:python_version<2.7
可是当前系统的python版本命名是2.7的,所以很是诡异。
最后排查才发现,是因为系统中setuptools的版本过低,导致无法识别到本机安装的python。
解决办法:
升级setuptools,即可;命令如下:
pip install --upgrade setuptools -i http://pypi.mirrors.ustc.edu.cn/simple
相关文章推荐
- Python2.7使用Oracle插入中文字符报错问题解决方案
- win64位下Python2.7安装pyXML问题解决方案
- win7+py2.7+pyHook的安装,并解决Python version 2.7 required,which was not found in the registry问题
- Python之——Python version 2.7 required, which was not found 注册表问题解决方法
- Python Version 2.7 required which was not found in the registry 问题解决
- Python version 2.7 required, which was not found 注册表问题解决方法
- 【转载】Python Version 2.7 required which was not found in the registry 问题解决
- (转)Python Version 2.7 required which was not found in the registry 问题解决
- win64位下Python2.7安装pyXML问题解决方案
- 安装win32com报错-Python Version 2.7 required which was not found in the registry 问题解决 .
- Python Version 2.7 required which was not found in the registry 问题解决
- Python Version 2.7 requires , which was not found in the registy 问题解决
- Python读取.xml文件(<?xml version="1.0" encoding="UTF-16"?>)中文乱码问题解决
- Python Version 2.7 required which was not found in the registry 问题解决
- python matplotlib安装问题解决方案
- python中的invalid syntax问题的解决
- 解决安装MySQL-python出现的:Python version 2.7 required, which was not found in the registry
- 安装Python-Matplotlib时出现的问题--Python version 2.7 required, which was not found in the registry
- <交流贴>四种方案解决ScrollView嵌套ListView问题
- win8 系统安装python 2.7 【问题解决】--mindfusion 解决--2-5