Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda environment setup #1

Open
sufiah59 opened this issue Aug 23, 2024 · 1 comment
Open

Conda environment setup #1

sufiah59 opened this issue Aug 23, 2024 · 1 comment

Comments

@sufiah59
Copy link

Hi Dibya, can you help me on these error while setting up the conda environment?:

After running these codes for windows: "(real_world_deep_rl_course) C:\Users\user>conda env update --name real_world_deep_rl_course --file environment.yml "

I have these error:

Pip subprocess error:
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\pkg_resources_init_.py", line 3367, in _dep_map
return self._dep_map
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 3147, 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\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\packaging\requirements.py", line 36, in init
parsed = _parse_requirement(requirement_string)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\packaging_parser.py", line 62, in parse_requirement
return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\packaging_parser.py", line 80, in _parse_requirement
url, specifier, marker = _parse_requirement_details(tokenizer)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\packaging_parser.py", line 118, in _parse_requirement_details
specifier = _parse_specifier(tokenizer)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\packaging_parser.py", line 215, in _parse_specifier
tokenizer.consume("WS")
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\contextlib.py", line 126, in exit
next(self.gen)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\packaging_tokenizer.py", line 189, in enclosing_tokens
self.raise_syntax_error(
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\packaging_tokenizer.py", line 167, in raise_syntax_error
raise ParserSyntaxError(
pip._vendor.packaging._tokenizer.ParserSyntaxError: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
opencv-python (>=3.) ; extra == 'all'
~~~~^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_internal\cli\base_command.py", line 105, in _run_wrapper
status = _inner_run()
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_internal\cli\base_command.py", line 96, in _inner_run
return self.run(options, args)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_internal\cli\req_command.py", line 67, in wrapper
return func(self, options, args)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_internal\commands\install.py", line 379, in run
requirement_set = resolver.resolve(
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 427, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 239, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 229, in _get_updated_criteria
for requirement in self._p.get_dependencies(candidate=candidate):
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_internal\resolution\resolvelib\provider.py", line 247, in get_dependencies
return [r for r in candidate.iter_dependencies(with_requires) if r is not None]
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_internal\resolution\resolvelib\provider.py", line 247, in
return [r for r in candidate.iter_dependencies(with_requires) if r is not None]
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 401, in iter_dependencies
for r in self.dist.iter_dependencies():
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_internal\metadata\pkg_resources.py", line 247, in iter_dependencies
return self.dist.requires(extras)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 3070, in requires
dm = self.dep_map
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 3369, in _dep_map
self.__dep_map = self.compute_dependencies()
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 3379, in compute_dependencies
reqs.extend(parse_requirements(req))
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 3434, in init
super().init(requirement_string)
File "C:\Users\user\miniconda3\envs\real_world_deep_rl_course\lib\site-packages\pip_vendor\packaging\requirements.py", line 38, in init
raise InvalidRequirement(str(e)) from e
pip._vendor.packaging.requirements.InvalidRequirement: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
opencv-python (>=3.) ; extra == 'all'
~~~~^

failed

CondaEnvException: Pip failed

@gutfeeling
Copy link
Owner

gutfeeling commented Aug 23, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants