facebookresearch / nocturne

A data-driven, fast driving simulator for multi-agent coordination under partial observability.
MIT License
259 stars 29 forks source link

[Question] #82

Open Zhangfengmo opened 1 month ago

Zhangfengmo commented 1 month ago

Question

I am a beginner, sorry to disturb, I use conda env create -f environment.yml command when there is an error: Pip subprocess error: ERROR: Command errored out with exit status 1: command: 'E:\Anaconda\envs\nocturne\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C' cwd: C:\Users\FengmoZhang\AppData\Local\Temp\pip-install-3pa_xqy4\gym_c4c7742b0436454389c4ecc2a5b6b8ae\ Complete output (1 lines): error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings cont.

WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/f1/16/a421155206e7dc41b3a79d4e9311287b88c20140d567182839. ERROR: Could not find a version that satisfies the requirement gym==0.20.0 (from versions: 0.0.2, 0.0.3, 0.0.4, 0.0.5, ) ERROR: No matching distribution found for gym==0.20.0

failed

CondaEnvException: Pip failed

Is there a solution? I tried to change multiple pip download sources, but I couldn't download them.

eugenevinitsky commented 1 month ago

Is this a windows machine? Unfortunately, I'm not familiar with them and am unsure how to support them correctly

Zhangfengmo commented 1 month ago

这是一台 Windows 机器吗?不幸的是,我不熟悉它们,也不确定如何正确支持它们

Well, thank you for your answer, and by the way, one question. I deleted the version number under pip sequence in environment.yml. Gym error has disappeared, but now there is a new error. Did you have any questions or encountered this error before ?

Pip subprocess error: error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [25 lines of output] Compiling faster_fifo.pyx because it depends on C:\Users\FengmoZhang\AppData\Local\Temp\pip-build-env-b5xgz7jb\ov. [1/1] Cythonizing faster_fifo.pyx Traceback (most recent call last): File "E:\Anaconda\envs\nocturne\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line> main() File "E:\Anaconda\envs\nocturne\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", linen json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Anaconda\envs\nocturne\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", linel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\FengmoZhang\AppData\Local\Temp\pip-build-env-b5xgz7jb\overlay\Lib\site-packages\setuptools\buildl return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\FengmoZhang\AppData\Local\Temp\pip-build-env-b5xgz7jb\overlay\Lib\site-packages\setuptools\builds self.run_setup() File "C:\Users\FengmoZhang\AppData\Local\Temp\pip-build-env-b5xgz7jb\overlay\Lib\site-packages\setuptools\buildp exec(code, locals()) File "", line 42, in File "C:\Users\FengmoZhang\AppData\Local\Temp\pip-build-env-b5xgz7jb\overlay\Lib\site-packages\setuptools\discod convert_path(str(where)), ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\FengmoZhang\AppData\Local\Temp\pip-build-env-b5xgz7jb\overlay\Lib\site-packages\setuptools_disth raise ValueError(f"path '{pathname}' cannot end with '/'") ValueError: path './' cannot end with '/' [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.

failed

CondaEnvException: Pip failed