I was installing virtual environments (as part of the standard course)
Got error message saying “Windows C++ or higher is needed to install packages". Installation process finished with failure.
“C++ build tools” installed. Installed everything that was needed.
tried installing the Python packages again(environment)
conda env create -f https://quantra.quantinsti.com/downloads/machinelearning/environment.yml
, as is suggested in the course: "and this time the set-up will be complete".
Aha, no,I got error message:
CondaValueError: prefix already exists:C:…envs\quantra_py
I don't know how to complete the interrupted installation of the package because of this stupid C++ package error. Please,help.
Hi Vladimir,
I understand the frustration when something interrupts the installation.
But you are almost there. I think if it is showing that there is already an environment by the name "quantra_py" you should first deactivate it and then delete it.
If you are at the base environment, try running the following command on the anaconda prompt.
conda remove --name quantra_py --all
Once this command is run, you can use the same command to install the python virtual environment.
conda env create -f https://quantra.quantinsti.com/downloads/machinelearning/environment.yml
I hope this results in the smooth set-up of your virtual environment.
Thanks.
That worked.
I have typed these two commands and it worked.
When I was installing the environment the 2nd time I was expecting a bunch of packages installed again, but, no, only 1 was installed. I guess they were not really deleted.
Thank you very much, Rekhit