Open Colin123 opened 12 months ago
Found this worked per https://github.com/NVIDIA/apex/issues/1594
RUN /opt/conda/envs/TradeMaster/bin/python -m pip install -v --no-cache-dir --no-build-isolation .
Once I got through the apex install. I did run into another issues w/ the requirements.txt when installing gym 0.21. I fixed it with adding these lines before the install of requirements.txt. Might be able to just adjust the version of gym that is installed also.
RUN /opt/conda/envs/TradeMaster/bin/python -m pip install setuptools==65.5.1 pip==21 RUN /opt/conda/envs/TradeMaster/bin/python -m pip install wheel==0.38.0 RUN /opt/conda/envs/TradeMaster/bin/python -m pip install -r requirements.txt
Hi,
Can you check the docker file?
The first error I got was this:
ERROR: failed to solve: nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04: docker.io/nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04: not found
I then edited the Dockerfile to use the following version: FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04
But then I get the following error later:
**0.530 Using pip 23.3 from /opt/conda/envs/TradeMaster/lib/python3.9/site-packages/pip (python 3.9) 0.570 Processing /home/apex 0.573 Installing build dependencies: started ... ... 2.504 File "", line 5, in
2.505 ModuleNotFoundError: No module named 'packaging'
2.515 error: subprocess-exited-with-error
2.515
2.515 × Getting requirements to build wheel did not run successfully. 2.515 │ exit code: 1 2.515 ╰─> See above for output. 2.515
2.515 note: This error originates from a subprocess, and is likely not a problem with pip. 2.515 full command: /opt/conda/envs/TradeMaster/bin/python /opt/conda/envs/TradeMaster/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp7uip7l83 2.516 cwd: /home/apex 2.516 Getting requirements to build wheel: finished with status 'error' 2.518 error: subprocess-exited-with-error 2.518 2.518 × Getting requirements to build wheel did not run successfully. 2.518 │ exit code: 1 2.518 ╰─> See above for output. 2.518 2.518 note: This error originates from a subprocess, and is likely not a problem with pip.
Dockerfile:41
39 | RUN git clone https://github.com/NVIDIA/apex 40 | WORKDIR apex 41 | >>> RUN /opt/conda/envs/TradeMaster/bin/python -m pip install -v --no-cache-dir . 42 |
43 | # Install requirements
ERROR: failed to solve: process "/bin/sh -c /opt/conda/envs/TradeMaster/bin/python -m pip install -v --no-cache-dir ." did not complete successfully: exit code: 1**