1 year ago
#384917
Pelin
Conda Keeps Using Wrong Version of Tensorflow even Installed Correctly
I am creating a different environment on Anaconda to use tensorflow-gpu v2.1. Everytime I try to create an environment with v2.1, when I check the version, it keeps showing me 2.9.0-dev20220329
Is there any way to get rid of this version?
I followed these steps;
conda create -n TF21 python=3.7
conda activate TF21
I tried both on different environments;
pip install tensorflow-gpu==2.1
conda install -c anaconda tensorflow-gpu==2.1
Everytime I check the version of tensorflow with;
import tensorflow as tf
print(tf.__version__)
I keep getting 2.9.0-dev20220329
. I couldn't find a solution yet, I also tried to uninstall/reinstall Anaconda completely but no use.
Is there any way I could get rid of this issue?
Edit - print(tf.__spec__)
output;
ModuleSpec(name='tensorflow',
loader=<_frozen_importlib_external.SourceFileLoader object at 0x000001CA835B35C8>,
origin='C:\\Users\\Cluster\\AppData\\Roaming\\Python\\Python37\\site-packages\\tensorflow\\__init__.py',
submodule_search_locations=['C:\\Users\\Cluster\\AppData\\Roaming\\Python\\Python37\\site-packages\\tensorflow',
'C:\\Users\\Cluster\\AppData\\Roaming\\Python\\Python37\\site-packages\\tensorflow\\_api\\v2'])
python
tensorflow
pip
anaconda
conda
0 Answers
Your Answer