mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-30 01:19:00 +00:00
fixed
This commit is contained in:
parent
19118cfe6e
commit
de507627a7
@ -340,17 +340,17 @@ def reinstall_pytorch_with_cuda():
|
|||||||
try:
|
try:
|
||||||
import conda.cli
|
import conda.cli
|
||||||
ASCIIColors.info("Installing cuda 12.1.1") # -c nvidia/label/cuda-12.1.1 -c nvidia -c conda-forge
|
ASCIIColors.info("Installing cuda 12.1.1") # -c nvidia/label/cuda-12.1.1 -c nvidia -c conda-forge
|
||||||
result = conda.cli.main(["conda", "install", "-c", "nvidia/label/cuda-12.1.1", "-c", "nvidia", "-c", "conda-forge", "cuda-toolkit","-y"])
|
result = conda.cli.main("conda", "install", "-c", "nvidia/label/cuda-12.1.1", "-c", "nvidia", "-c", "conda-forge", "cuda-toolkit","-y")
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
ASCIIColors.error(ex)
|
ASCIIColors.error(ex)
|
||||||
try:
|
try:
|
||||||
ASCIIColors.info("Installing ninja") # -c nvidia/label/cuda-12.1.1 -c nvidia -c conda-forge
|
ASCIIColors.info("Installing ninja") # -c nvidia/label/cuda-12.1.1 -c nvidia -c conda-forge
|
||||||
result = conda.cli.main(["conda", "install", "-c", "nvidia/label/cuda-12.1.1", "-c", "nvidia", "-c", "conda-forge", "ninja", "-y"])
|
result = conda.cli.main("conda", "install", "-c", "nvidia/label/cuda-12.1.1", "-c", "nvidia", "-c", "conda-forge", "ninja", "-y")
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
ASCIIColors.error(ex)
|
ASCIIColors.error(ex)
|
||||||
try:
|
try:
|
||||||
ASCIIColors.info("Installing cuda compiler") # -c nvidia/label/cuda-12.1.1 -c nvidia -c conda-forge
|
ASCIIColors.info("Installing cuda compiler") # -c nvidia/label/cuda-12.1.1 -c nvidia -c conda-forge
|
||||||
result = conda.cli.main(["conda", "install", "-c", "nvidia/label/cuda-12.1.1", "-c", "nvidia", "-c", "conda-forge", "cuda-compiler", "-y"])
|
result = conda.cli.main("conda", "install", "-c", "nvidia/label/cuda-12.1.1", "-c", "nvidia", "-c", "conda-forge", "cuda-compiler", "-y")
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
ASCIIColors.error(ex)
|
ASCIIColors.error(ex)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user