我在Windows上使用Python 3.6,但是无法安装lasio软件包。这是启动
时得到的输出pip install lasio
从Anaconda提示符cmd
Collecting lasio
Using cached https://files.pythonhosted.org/packages/8d/25/60f49906d6a8bc46b2a78488f58a0f6c123c45494abc105eed9dcf0c2f87/lasio-0.23-py2.py3-none-any.whl
Requirement already satisfied: numpy in c:\users\name surname\appdata\local\continuum\anaconda3\lib\site-packages (from lasio) (1.15.2)
Collecting ordereddict (from lasio)
Exception:
Traceback (most recent call last):
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2883, in _dep_map
return self.__dep_map
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2677, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\packaging\requirements.py", line 93, in __init__
req = REQUIREMENT.parseString(requirement_string)
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1654, in parseString
raise exc
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1644, in parseString
loc, tokens = self._parse( instring, 0 )
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1402, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 3417, in parseImpl
loc, exprtokens = e._parse( instring, loc, doActions )
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1406, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 3205, in parseImpl
raise ParseException(instring, loc, self.errmsg, self)
pip._vendor.pyparsing.ParseException: Expected stringEnd (at char 33), (line:1, col:34)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2963, in __init__
super(Requirement, self).__init__(requirement_string)
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\packaging\requirements.py", line 96, in __init__
requirement_string[e.loc:e.loc + 8], e.msg
pip._vendor.packaging.requirements.InvalidRequirement: Parse error at "'; extra '": Expected stringEnd
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_internal\cli\base_command.py", line 143, in main
status = self.run(options, args)
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 349, in run
self._warn_about_conflicts(to_install)
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 475, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_internal\operations\check.py", line 98, in check_install_conflicts
package_set = create_package_set_from_installed()
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_internal\operations\check.py", line 41, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2621, in requires
dm = self._dep_map
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2885, in _dep_map
self.__dep_map = self._compute_dependencies()
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2895, in _compute_dependencies
reqs.extend(parse_requirements(req))
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2956, in parse_requirements
yield Requirement(line)
File "C:\Users\name surname\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2965, in __init__
raise RequirementParseError(str(e))
pip._vendor.pkg_resources.RequirementParseError: Parse error at "'; extra '": Expected stringEnd
我真的在Google上找不到关于此的任何解决方案。可能是点子配置问题吗?这不是我第一次在Windows上遇到这种错误,而且它们很烦人...