![]() Indeed my goal was installing tensorflow using conda but not in a new environment because I had pythorch installed and I had some jupyter notebooks that I wanted to import tensorflow and use some specific libraries.īut I fall into a loop of installing and uninstalling that led to this wired problem. ![]() Now I don't know How I should resolve this problem. Target directory: /home/./anaconda3/envs/tf-gp`Īnd when I try the way that it was explained I got the following error:ĬondaValueError: prefix already exists: /home/./anaconda3/envs/tf-gpu` Use 'conda create' to convert the directory to a conda environment. I tried to install only tensorflow-gpu in this new environment, but I got the following error:ĭirectoryNotACondaEnvironmentError: The target directory exists, but it is not a conda environment. Check that you have sufficient permissions. When I choose y I got the following error:ĬondaValueError: prefix already exists: /home/./anaconda3/envs/tf-gpuĬonda create -name new_env tensorflow-gpuĬondaError: Unable to create prefix directory '/home/./anaconda3/envs/new_env'. WARNING: A directory already exists at the target location '/home/./anaconda3/envs/tf-gpu'Ĭontinue creating environment (y/)? y` ModuleNotFoundError: No module named 'tensorflow' Proceed (/n)? y Preparing transaction: done Verifying transaction: failed NoSpaceLeftError: No space left on devices.Īnd when I checked if it has already been installed I got the following message: WARNING: A conda environment already exists at '/home/./anaconda3/envs/tf-gpu' Remove existing environment (y/)? y ![]() Then I checked if tensorflow has bben installed using pip or not by the following command: Pip install -upgrade pip pip install tensorflow Then I tried to install it using pip via the following command: ![]() Then I uninstalled it using conda remove tensorflow-gpu, I uninstalled tensorflow. Then I imported python and checked if tensorflow has been installed or not uisng tensorflow.version and I got the following message: Then I installed tensorflow on the base environment using: conda install -c conda-forge tensorflow-gpu. Then I uninstalled tensorflow from this environment using: conda uninstall tensorflow Then I activated it using: conda activate tf-gpu I installed tensorflow using conda create -n tf-gp tensorflow-gpu.
0 Comments
Leave a Reply. |