Invalid requirement: '–r'Traceback (most recent call last):  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 92, in __init__    req = REQUIREMENT.parseString(requirement_string)  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1617, in parseString    raise exc  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1607, in parseString    loc, tokens = self._parse( instring, 0 )  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1379, in _parseNoCache    loc,tokens = self.parseImpl( instring, preloc, doActions )  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 3376, in parseImpl    loc, exprtokens = e._parse( instring, loc, doActions )  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1379, in _parseNoCache    loc,tokens = self.parseImpl( instring, preloc, doActions )  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 3698, in parseImpl    return self.expr._parse( instring, loc, doActions, callPreParse=False )  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1379, in _parseNoCache    loc,tokens = self.parseImpl( instring, preloc, doActions )  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 3359, in parseImpl    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1383, in _parseNoCache    loc,tokens = self.parseImpl( instring, preloc, doActions )  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 2670, in parseImpl    raise ParseException(instring, loc, self.errmsg, self)pip._vendor.pyparsing.ParseException: Expected W:(abcd...) (at char 0), (line:1, col:1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/req/req_install.py", line 82, in __init__    req = Requirement(req)  File "/home/dev/.pyenv/versions/3.6.1/envs/env361/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 96, in __init__    requirement_string[e.loc:e.loc + 8]))pip._vendor.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'–r'"

pip install –r ./requirements.txt 报错 改成 pip install -r requirements.txt 成功的更多相关文章

  1. R语言 启动报错 *** glibc detected *** /usr/lib64/R/bin/exec/R: free(): invalid next size (fast): 0x000000000263a420 *** 错误 解决方案

    *** glibc detected *** /usr/lib64/R/bin/exec/R: free(): invalid next size (fast): 0x000000000263a420 ...

  2. pip assert_source_matches_version(self)版本验证报错Source in %s has version %s, which satisfies requirement %s的解决方式

    在win8.1下为了安装flask模块,开始安装pip,结果发生了上篇博客里面的错误ntpath join(path, *paths) 发生UnicodeDecodeError.解决之后继续发现版本验 ...

  3. [已解决]pycharm报错:AttributeError: module 'pip' has no attribute 'main'

    > 更新pip后,pycharm更新模块报错,经过一番查找,现提供两种解决办法. 报错片段信息如下: AttributeError: module 'pip' has no attribute ...

  4. android sdk启动报错error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:

    android sdk启动报错error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 问题原因: ...

  5. [Error]Python虚拟环境报错 OSError: setuptools pip wheel failed with error code 2

    mkvirtualenv py35 python新建虚拟环境报错,setuptools pip wheel failed with error code 2 刚好昨天在CentOS安装的时候也总是报s ...

  6. Cocoapods报错Unable to satisfy the following requirements

    很多时候我们都会去gitHub上down别人的源码去研究,如果别人的项目用pod集成了,当我们下载好后不外乎cd到项目根目录pod install一下,集成项目所需的库类.今天在我pod instal ...

  7. pycharm安装 package报错:module 'pip' has no attribute 'main'

    转自: <pycharm安装 package报错:module 'pip' has no attribute 'main'> https://www.cnblogs.com/Fordest ...

  8. AndroidStudio报错:GradleSyncIssues-Could not install Gradle distribution from...

    场景 在使用Android Studio 新建 App项目后,编译时提示: GradleSyncIssues-Could not install Gradle distribution from... ...

  9. pip install在Windows下报错解决

    报错: Traceback (most recent call last): File, in<module> load_entry_point('pip==1.4.1','console ...

随机推荐

  1. java基础 关于转换流

    转换流有两种:InputStreamReader:将字节流转换为字符流 OutputStreamWriter:将字符流转换为字节流 什么时候使用转换流?由以下分析: 流对象很多,首先要明确那个流对象. ...

  2. 一些C语言基础知识

    位运算 // 按位与&: 2 & 3 = 2: 010 & 011 = 010   两个1才为1 // 按位或|: 2 | 3 = 3: 010 | 011 = 011   只 ...

  3. iTOP-4418开发板所用核心板研发7寸/10.1寸安卓触控一体机

    iTOP-4418开发板所用核心板研发7寸/10.1寸安卓触控一体机 作为重中之重的电源管理选型,经多方对比测试最终选用AXP228,并得到原厂肯定 预留锂电池接口,内置充放电电路及电量计,可轻松搞定 ...

  4. 深度学习与NLP简单应用

    在深度学习中,文本分类的主要原型:Text  label,坐边是输入端“X”,右边是输出端“Y”.行业baseline:用BoW(bag of words)表示sentences(如何将文本表达成一 ...

  5. 提高MYSQL大数据量查询的速度

    1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引. 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索 ...

  6. pycharm+selenium搭建环境

    1.在你的python安装目录D:\Python36\Scripts下执行pip install selenium 2.安装完成后最好直接打开python,在下面输入from selenium imp ...

  7. LeetCode 解题总结

    1. 最长合法括号串 给定只包含'('和')'的字符串,找出最长合法括号串的长度. Example 1: Input: "(()"  Output: 2    Explanatio ...

  8. 使用Mac下的sequel Pro链接数据库时提示错误(已解决)

    使用Mac下的sequel Pro链接数据库时,出现如下问题: ? 1 MySQL said: Authentication plugin 'caching_sha2_password' cannot ...

  9. python自定义封装logging模块

    #coding:utf-8 import logging class TestLog(object): ''' 封装后的logging ''' def __init__(self , logger = ...

  10. Revit二次钢筋