facebookresearch / nle

The NetHack Learning Environment
Other
937 stars 114 forks source link

pip install nle==0.8.1 error #367

Open cuicui2023 opened 8 months ago

cuicui2023 commented 8 months ago

๐Ÿ› Bug

To Reproduce

Steps to reproduce the behavior:

1.conda activate continual-dreamer 2.pip install gym==0.23.1 3.pip install nle==0.8.1

Expected behavior

Collecting nle==0.8.1 Using cached nle-0.8.1.tar.gz (6.9 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

ร— Getting requirements to build wheel did not run successfully. โ”‚ exit code: 1 โ•ฐโ”€> [25 lines of output] Traceback (most recent call last): File "C:\ProgramData\Anaconda3\envs\continual-dreamer\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\ProgramData\Anaconda3\envs\continual-dreamer\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(hook_input['kwargs']) File "C:\ProgramData\Anaconda3\envs\continual-dreamer\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "C:\Users\24865\AppData\Local\Temp\pip-build-env-k7rgffwk\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "C:\Users\24865\AppData\Local\Temp\pip-build-env-k7rgffwk\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires self.run_setup() File "C:\Users\24865\AppData\Local\Temp\pip-build-env-k7rgffwk\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "C:\Users\24865\AppData\Local\Temp\pip-build-env-k7rgffwk\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 127, in File "C:\ProgramData\Anaconda3\envs\continual-dreamer\lib\subprocess.py", line 415, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\ProgramData\Anaconda3\envs\continual-dreamer\lib\subprocess.py", line 493, in run with Popen(popenargs, kwargs) as process: File "C:\ProgramData\Anaconda3\envs\continual-dreamer\lib\subprocess.py", line 858, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\ProgramData\Anaconda3\envs\continual-dreamer\lib\subprocess.py", line 1327, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] ็ณป็ปŸๆ‰พไธๅˆฐๆŒ‡ๅฎš็š„ๆ–‡ไปถใ€‚ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

ร— Getting requirements to build wheel did not run successfully. โ”‚ exit code: 1 โ•ฐโ”€> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Environment

Please copy and paste the output from running our environment collection script (or fill out the checklist below manually).

You can get the script and run it with:

# with repo already installed
$ python -m nle.scripts.collect_env

# or instead pull it from github
wget https://raw.githubusercontent.com/facebookresearch/nle/main/nle/scripts/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

Additional context