You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered this error while installing the torchprune package, Currently, I have found many methods but cannot solve it
"Installed e:\app\aconda\envs\prune\lib\site-packages\torchprune-2.0.0-py3.8.egg
Processing dependencies for torchprune==2.0.0
Traceback (most recent call last):
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init_.py", line 3109, in _dep_map
return self._dep_map
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init.py", line 2902, in getattr
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging\requirements.py", line 35, in init
parsed = _parse_requirement(requirement_string)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 64, in parse_requirement
return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 82, in _parse_requirement
url, specifier, marker = _parse_requirement_details(tokenizer)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 120, in _parse_requirement_details
specifier = _parse_specifier(tokenizer)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 216, in _parse_specifier
parsed_specifiers = _parse_version_many(tokenizer)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 231, in _parse_version_many
tokenizer.raise_syntax_error(
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_tokenizer.py", line 165, in raise_syntax_error
raise ParserSyntaxError(
pkg_resources.extern.packaging._tokenizer.ParserSyntaxError: .* suffix can only be used with == or != operators
numpy (>=1.19.*) ; python_version >= "3.7"
~~~~~~~^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 12, in
setuptools.setup(
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_init_.py", line 107, in setup
return distutils.core.setup(*attrs)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\dist.py", line 1233, in run_command
super().run_command(command)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\install.py", line 84, in run
self.do_egg_install()
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\install.py", line 140, in do_egg_install
cmd.run(show_deprecation=False)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\easy_install.py", line 442, in run
self.easy_install(spec, not self.no_deps)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\easy_install.py", line 690, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\easy_install.py", line 740, in install_item
self.process_distribution(spec, dist, deps)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\easy_install.py", line 788, in process_distribution
distros = WorkingSet([]).resolve(
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init_.py", line 834, in resolve
new_requirements = dist.requires(req.extras)[::-1]
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init_.py", line 2822, in requires
dm = self.dep_map
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init.py", line 3111, in _dep_map
self.__dep_map = self.compute_dependencies()
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init.py", line 3121, in compute_dependencies
reqs.extend(parse_requirements(req))
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init.py", line 3174, in init
super(Requirement, self).init(requirement_string)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging\requirements.py", line 37, in init
raise InvalidRequirement(str(e)) from e
pkg_resources.extern.packaging.requirements.InvalidRequirement: . suffix can only be used with == or != operators
numpy (>=1.19.*) ; python_version >= "3.7"
~~~~~~~^"
The text was updated successfully, but these errors were encountered:
I encountered this error while installing the torchprune package, Currently, I have found many methods but cannot solve it
"Installed e:\app\aconda\envs\prune\lib\site-packages\torchprune-2.0.0-py3.8.egg
Processing dependencies for torchprune==2.0.0
Traceback (most recent call last):
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init_.py", line 3109, in _dep_map
return self._dep_map
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init.py", line 2902, in getattr
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging\requirements.py", line 35, in init
parsed = _parse_requirement(requirement_string)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 64, in parse_requirement
return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 82, in _parse_requirement
url, specifier, marker = _parse_requirement_details(tokenizer)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 120, in _parse_requirement_details
specifier = _parse_specifier(tokenizer)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 216, in _parse_specifier
parsed_specifiers = _parse_version_many(tokenizer)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_parser.py", line 231, in _parse_version_many
tokenizer.raise_syntax_error(
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging_tokenizer.py", line 165, in raise_syntax_error
raise ParserSyntaxError(
pkg_resources.extern.packaging._tokenizer.ParserSyntaxError: .* suffix can only be used with
==
or!=
operatorsnumpy (>=1.19.*) ; python_version >= "3.7"
~~~~~~~^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 12, in
setuptools.setup(
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_init_.py", line 107, in setup
return distutils.core.setup(*attrs)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\dist.py", line 1233, in run_command
super().run_command(command)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\install.py", line 84, in run
self.do_egg_install()
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\install.py", line 140, in do_egg_install
cmd.run(show_deprecation=False)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\easy_install.py", line 442, in run
self.easy_install(spec, not self.no_deps)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\easy_install.py", line 690, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\easy_install.py", line 740, in install_item
self.process_distribution(spec, dist, deps)
File "E:\app\aconda\envs\prune\lib\site-packages\setuptools\command\easy_install.py", line 788, in process_distribution
distros = WorkingSet([]).resolve(
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init_.py", line 834, in resolve
new_requirements = dist.requires(req.extras)[::-1]
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init_.py", line 2822, in requires
dm = self.dep_map
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init.py", line 3111, in _dep_map
self.__dep_map = self.compute_dependencies()
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init.py", line 3121, in compute_dependencies
reqs.extend(parse_requirements(req))
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_init.py", line 3174, in init
super(Requirement, self).init(requirement_string)
File "E:\app\aconda\envs\prune\lib\site-packages\pkg_resources_vendor\packaging\requirements.py", line 37, in init
raise InvalidRequirement(str(e)) from e
pkg_resources.extern.packaging.requirements.InvalidRequirement: . suffix can only be used with
==
or!=
operatorsnumpy (>=1.19.*) ; python_version >= "3.7"
~~~~~~~^"
The text was updated successfully, but these errors were encountered: