Untitled conversation
- User
[aitahmad@exanode-10-0 Barlow-Twins-TF2] python Python 3.8.19 (default, Mar 20 2024, 19:58:24) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.
- Assistant
[aitahmad@exanode-10-0 Barlow-Twins-TF2] python Python 3.8.19 (default, Mar 20 2024, 19:58:24) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.
import tensorflow as tf Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'tensorflow' exit() (tensorflow2) [aitahmad@exanode-10-0 Barlow-Twins-TF2]$ conda list
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
abseil-cpp 20211102.0 hd4dd3e8_0
absl-py 2.0.0 pypi_0 pypi
access 1.1.9 pypi_0 pypi
affine 2.4.0 pypi_0 pypi
aiobotocore 2.5.4 pypi_0 pypi
aiohttp 3.9.1 pypi_0 pypi
aioitertools 0.11.0 pypi_0 pypi
aiosignal 1.3.1 pypi_0 pypi
albumentations 1.3.1 pypi_0 pypi
anndata 0.10.4 pypi_0 pypi
annotated-types 0.6.0 pypi_0 pypi
anyio 4.3.0 pypi_0 pypi
argon2-cffi 23.1.0 pypi_0 pypi
argon2-cffi-bindings 21.2.0 pypi_0 pypi
array-api-compat 1.4.1 pypi_0 pypi
arrow 1.3.0 pypi_0 pypi
arrow-cpp 14.0.2 h374c478_1
asciitree 0.3.3 pypi_0 pypi
asttokens 2.0.5 pyhd3eb1b0_0
astunparse 1.6.3 pypi_0 pypi
async-lru 2.0.4 pypi_0 pypi
async-timeout 4.0.3 pypi_0 pypi
attrs 23.2.0 pypi_0 pypi
aws-c-auth 0.6.19 h5eee18b_0
aws-c-cal 0.5.20 hdbd6064_0
aws-c-common 0.8.5 h5eee18b_0
aws-c-compression 0.2.16 h5eee18b_0
aws-c-event-stream 0.2.15 h6a678d5_0
aws-c-http 0.6.25 h5eee18b_0
aws-c-io 0.13.10 h5eee18b_0
aws-c-mqtt 0.7.13 h5eee18b_0
aws-c-s3 0.1.51 hdbd6064_0
aws-c-sdkutils 0.1.6 h5eee18b_0
aws-checksums 0.1.13 h5eee18b_0
aws-crt-cpp 0.18.16 h6a678d5_0
aws-sdk-cpp 1.10.55 h721c034_0
babel 2.15.0 pypi_0 pypi
backcall 0.2.0 pyhd3eb1b0_0
beautifulsoup4 4.12.3 pypi_0 pypi
blas 1.0 openblas
bleach 6.1.0 pypi_0 pypi
bokeh 3.4.0 py39h2f386ee_1
boost-cpp 1.82.0 hdb19cb5_2
botocore 1.31.17 pypi_0 pypi
bottleneck 1.3.7 py39ha9d4c09_0
brotli 1.0.9 h5eee18b_7
brotli-bin 1.0.9 h5eee18b_7
brotli-python 1.0.9 py39h6a678d5_7
bzip2 1.0.8 h5eee18b_5
c-ares 1.19.1 h5eee18b_0
ca-certificates 2024.3.11 h06a4308_0
cachetools 5.3.2 pypi_0 pypi
cellpose 2.2.3 pypi_0 pypi
certifi 2023.11.17 pypi_0 pypi
cffi 1.16.0 py39h7a31438_0 conda-forge
charset-normalizer 3.3.2 pypi_0 pypi
click 8.1.7 py39h06a4308_0
click-plugins 1.1.1 pypi_0 pypi
cligj 0.7.2 pypi_0 pypi
cloudpickle 3.0.0 pypi_0 pypi
colorcet 3.0.1 pypi_0 pypi
comm 0.2.2 pypi_0 pypi
contourpy 1.2.0 py39hdb19cb5_0
cycler 0.12.1 pypi_0 pypi
cython 0.29.30 py39h5a03fae_0 conda-forge
cytoolz 0.12.2 py39h5eee18b_0
dask 2024.1.0 pypi_0 pypi
dask-core 2023.11.0 py39h06a4308_0
dask-image 2023.8.1 pypi_0 pypi
datashader 0.16.0 pypi_0 pypi
dcor 0.6 pyhd8ed1ab_0 conda-forge
debugpy 1.6.7 py39h6a678d5_0
decorator 5.1.1 pyhd3eb1b0_0
deepcell 0.12.9 pypi_0 pypi
deepcell-toolbox 0.12.1 pypi_0 pypi
deepcell-tracking 0.6.4 pypi_0 pypi
defusedxml 0.7.1 pypi_0 pypi
deprecation 2.1.0 pypi_0 pypi
distributed 2024.1.0 pypi_0 pypi
docrep 0.3.2 pypi_0 pypi
efficientnet 1.0.0 pypi_0 pypi
esda 2.5.1 pypi_0 pypi
exceptiongroup 1.0.4 py39h06a4308_0
executing 0.8.3 pyhd3eb1b0_0
fastcluster 1.2.6 pypi_0 pypi
fasteners 0.19 pypi_0 pypi
fastjsonschema 2.19.1 pypi_0 pypi
fastremap 1.14.1 pypi_0 pypi
fdasrsf 2.3.6 py39he80948d_0 conda-forge
filelock 3.13.1 pypi_0 pypi
findiff 0.10.0 pyhd8ed1ab_0 conda-forge
fiona 1.9.5 pypi_0 pypi
flatbuffers 23.5.26 pypi_0 pypi
fonttools 4.49.0 pypi_0 pypi
fqdn 1.5.1 pypi_0 pypi
freetype 2.12.1 h4a9f257_0
frozenlist 1.4.1 pypi_0 pypi
fsspec 2023.6.0 pypi_0 pypi
gast 0.4.0 pypi_0 pypi
geopandas 0.14.2 pypi_0 pypi
get-annotations 0.1.2 pypi_0 pypi
gflags 2.2.2 h6a678d5_1
giddy 2.3.5 pypi_0 pypi
glog 0.5.0 h6a678d5_1
google-auth 2.24.0 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
gpy 1.10.0 py39hd257fcd_3 conda-forge
grpc-cpp 1.48.2 he1ff14a_1
grpcio 1.59.3 pypi_0 pypi
h11 0.14.0 pypi_0 pypi
h5py 3.10.0 pypi_0 pypi
heapdict 1.0.1 pyhd3eb1b0_0
httpcore 1.0.5 pypi_0 pypi
httpx 0.27.0 pypi_0 pypi
icu 73.1 h6a678d5_0
idna 3.6 pypi_0 pypi
igraph 0.10.8 pypi_0 pypi
image-classifiers 1.0.0 pypi_0 pypi
imagecodecs 2024.1.1 pypi_0 pypi
imageio 2.33.0 pypi_0 pypi
importlib-metadata 6.9.0 pypi_0 pypi
importlib-resources 6.1.2 pypi_0 pypi
importlib_metadata 6.0.0 hd3eb1b0_0
importlib_resources 6.1.1 py39h06a4308_1
inequality 1.0.0 pypi_0 pypi
inflect 7.0.0 pypi_0 pypi
intel-openmp 2022.1.0 h9e868ea_3769
ipykernel 6.25.0 py39h2f386ee_0
ipython 8.15.0 py39h06a4308_0
ipywidgets 8.1.2 pypi_0 pypi
isoduration 20.11.0 pypi_0 pypi
jedi 0.18.1 py39h06a4308_1
jinja2 3.1.3 py39h06a4308_0
jmespath 1.0.1 pypi_0 pypi
joblib 1.2.0 py39h06a4308_0
jpeg 9e h5eee18b_1
json5 0.9.25 pypi_0 pypi
jsonpointer 2.4 pypi_0 pypi
jsonschema 4.22.0 pypi_0 pypi
jsonschema-specifications 2023.12.1 pypi_0 pypi
jupyter 1.0.0 pypi_0 pypi
jupyter-console 6.6.3 pypi_0 pypi
jupyter-events 0.10.0 pypi_0 pypi
jupyter-lsp 2.2.5 pypi_0 pypi
jupyter-server 2.14.0 pypi_0 pypi
jupyter-server-terminals 0.5.3 pypi_0 pypi
jupyter_client 8.6.0 py39h06a4308_0
jupyter_core 5.5.0 py39h06a4308_0
jupyterlab 4.1.8 pypi_0 pypi
jupyterlab-pygments 0.3.0 pypi_0 pypi
jupyterlab-server 2.27.1 pypi_0 pypi
jupyterlab-widgets 3.0.10 pypi_0 pypi
keras 2.8.0 pypi_0 pypi
keras-applications 1.0.8 pypi_0 pypi
keras-preprocessing 1.1.2 pypi_0 pypi
kiwisolver 1.4.5 pypi_0 pypi
krb5 1.20.1 h143b758_1
lazy-loader 0.3 pypi_0 pypi
lazy_loader 0.4 pyhd8ed1ab_0 conda-forge
lcms2 2.12 h3be6417_0
ld_impl_linux-64 2.38 h1181459_1
leidenalg 0.10.1 pypi_0 pypi
lerc 3.0 h295c915_0
libboost 1.82.0 h109eef0_2
libbrotlicommon 1.0.9 h5eee18b_7
libbrotlidec 1.0.9 h5eee18b_7
libbrotlienc 1.0.9 h5eee18b_7
libclang 16.0.6 pypi_0 pypi
libcurl 8.5.0 h251f7ec_0
libdeflate 1.17 h5eee18b_1
libedit 3.1.20230828 h5eee18b_0
libev 4.33 h7f8727e_1
libevent 2.1.12 hdbd6064_1
libffi 3.4.4 h6a678d5_0
libgcc 7.2.0 h69d50b8_2
libgcc-ng 13.2.0 h807b86a_5 conda-forge
libgfortran-ng 11.2.0 h00389a5_1
libgfortran5 11.2.0 h1234567_1
libgomp 13.2.0 h807b86a_5 conda-forge
libllvm10 10.0.1 hbcb73fb_5
libllvm11 11.1.0 hf817b99_3 conda-forge
libllvm14 14.0.6 hdb19cb5_3
libnghttp2 1.57.0 h2d74bed_0
libopenblas 0.3.21 h043d6bf_0
libpng 1.6.39 h5eee18b_0
libprotobuf 3.20.3 he621ea3_0
libpysal 4.8.1 pypi_0 pypi
libsodium 1.0.18 h7b6447c_0
libssh2 1.10.0 hdbd6064_2
libstdcxx-ng 11.2.0 h1234567_1 anaconda
libthrift 0.15.0 h1795dd8_2
libtiff 4.5.1 h6a678d5_0
libwebp-base 1.3.2 h5eee18b_0
libzlib 1.2.13 hd590300_5 conda-forge
llvmlite 0.42.0 pypi_0 pypi
locket 1.0.0 py39h06a4308_0
lxml 5.2.1 pypi_0 pypi
lz4 4.3.2 py39h5eee18b_0
lz4-c 1.9.4 h6a678d5_0
mapclassify 2.6.1 pypi_0 pypi
markdown 3.5.1 pypi_0 pypi
markdown-it-py 3.0.0 pypi_0 pypi
markupsafe 2.1.3 py39h5eee18b_0
matplotlib 3.8.3 pypi_0 pypi
matplotlib-base 3.8.0 py39h1128e8f_0
matplotlib-inline 0.1.6 py39h06a4308_0
matplotlib-scalebar 0.8.1 pypi_0 pypi
mdurl 0.1.2 pypi_0 pypi
mgwr 2.2.1 pypi_0 pypi
mistune 3.0.2 pypi_0 pypi
mkl 2022.1.0 hc2b9512_224
mkl-service 2.4.0 py39hb699420_0 conda-forge
mkl_fft 1.3.1 py39h051f8f4_4 conda-forge
mkl_random 1.2.2 py39h8b66066_1 conda-forge
ml-dtypes 0.2.0 pypi_0 pypi
momepy 0.6.0 pypi_0 pypi
mpmath 1.3.0 pyhd8ed1ab_0 conda-forge
msgpack 1.0.7 pypi_0 pypi
msgpack-python 1.0.3 py39hd09550d_0
multidict 6.0.4 pypi_0 pypi
multimethod 1.9.1 pyhd8ed1ab_0 conda-forge
multipledispatch 1.0.0 pypi_0 pypi
multiscale-spatial-image 0.11.2 pypi_0 pypi
munkres 1.1.4 py_0
natsort 8.4.0 pypi_0 pypi
nbclient 0.10.0 pypi_0 pypi
nbconvert 7.16.4 pypi_0 pypi
nbformat 5.10.4 pypi_0 pypi
ncurses 6.4 h6a678d5_0
nest-asyncio 1.5.6 py39h06a4308_0
networkx 3.2.1 pypi_0 pypi
notebook 7.1.3 pypi_0 pypi
notebook-shim 0.2.4 pypi_0 pypi
numba 0.59.1 pypi_0 pypi
numcodecs 0.12.1 pypi_0 pypi
numexpr 2.8.7 py39h286c3b5_0
numpy 1.23.4 pypi_0 pypi
nvidia-cublas-cu12 12.1.3.1 pypi_0 pypi
nvidia-cuda-cupti-cu12 12.1.105 pypi_0 pypi
nvidia-cuda-nvcc-cu12 12.2.140 pypi_0 pypi
nvidia-cuda-nvrtc-cu12 12.1.105 pypi_0 pypi
nvidia-cuda-runtime-cu12 12.1.105 pypi_0 pypi
nvidia-cudnn-cu12 8.9.2.26 pypi_0 pypi
nvidia-cufft-cu12 11.0.2.54 pypi_0 pypi
nvidia-curand-cu12 10.3.2.106 pypi_0 pypi
nvidia-cusolver-cu12 11.4.5.107 pypi_0 pypi
nvidia-cusparse-cu12 12.1.0.106 pypi_0 pypi
nvidia-nccl-cu12 2.19.3 pypi_0 pypi
nvidia-nvjitlink-cu12 12.2.140 pypi_0 pypi
nvidia-nvtx-cu12 12.1.105 pypi_0 pypi
oauthlib 3.2.2 pypi_0 pypi
ome-zarr 0.8.3 pypi_0 pypi
omnipath 1.0.8 pypi_0 pypi
opencv-python 4.8.1.78 pypi_0 pypi
opencv-python-headless 4.8.1.78 pypi_0 pypi
openjpeg 2.4.0 h3ad879b_0
openssl 3.2.1 hd590300_1 conda-forge
opt-einsum 3.3.0 pypi_0 pypi
orc 1.7.4 hb3bc3d3_1
overrides 7.7.0 pypi_0 pypi
packaging 23.2 pypi_0 pypi
pandas 2.2.0 pypi_0 pypi
pandocfilters 1.5.1 pypi_0 pypi
param 2.0.2 pypi_0 pypi
paramz 0.9.5 py_0 conda-forge
parso 0.8.3 pyhd3eb1b0_0
partd 1.4.1 py39h06a4308_0
patsy 0.5.6 pyhd8ed1ab_0 conda-forge
pexpect 4.8.0 pyhd3eb1b0_3
pickle5 0.0.11 pypi_0 pypi
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 10.1.0 pypi_0 pypi
pims 0.6.1 pypi_0 pypi
pip 23.3.1 py39h06a4308_0
platformdirs 3.10.0 py39h06a4308_0
plotly 5.19.0 pypi_0 pypi
pointpats 2.4.0 pypi_0 pypi
prometheus-client 0.20.0 pypi_0 pypi
prompt-toolkit 3.0.36 py39h06a4308_0
protobuf 3.19.6 pypi_0 pypi
psutil 5.9.0 py39h5eee18b_0
ptyprocess 0.7.0 pyhd3eb1b0_2
pulp 2.8.0 pypi_0 pypi
pure_eval 0.2.2 pyhd3eb1b0_0
pyarrow 14.0.2 py39h1eedbd7_0
pyasn1 0.5.1 pypi_0 pypi
pyasn1-modules 0.3.0 pypi_0 pypi
pycomplexheatmap 1.6.6 pypi_0 pypi
pycparser 2.22 pyhd8ed1ab_0 conda-forge
pyct 0.5.0 pypi_0 pypi
pydantic 2.5.3 pypi_0 pypi
pydantic-core 2.14.6 pypi_0 pypi
pydot 1.4.2 pypi_0 pypi
pygeos 0.14 pypi_0 pypi
pygments 2.15.1 py39h06a4308_1
pynndescent 0.5.11 pypi_0 pypi
pyometiff 1.0.0 pypi_0 pypi
pyparsing 3.1.1 pypi_0 pypi
pyproj 3.6.1 pypi_0 pypi
pysal 23.7 pypi_0 pypi
pysocks 1.7.1 py39h06a4308_0
python 3.9.18 h955ad1f_0
python-dateutil 2.8.2 pyhd3eb1b0_0
python-graphviz 0.20.1 pypi_0 pypi
python-json-logger 2.0.7 pypi_0 pypi
python-lmdb 1.4.1 py39h6a678d5_0
python-tzdata 2023.3 pyhd3eb1b0_0
python_abi 3.9 2_cp39 conda-forge
pytz 2024.1 pypi_0 pypi
pywavelets 1.5.0 pypi_0 pypi
pyyaml 6.0.1 py39h5eee18b_0
pyzmq 25.1.0 py39h6a678d5_0
qtconsole 5.5.2 pypi_0 pypi
qtpy 2.4.1 pypi_0 pypi
quantecon 0.7.1 pypi_0 pypi
qudida 0.0.4 pypi_0 pypi
rasterio 1.3.9 pypi_0 pypi
rasterstats 0.19.0 pypi_0 pypi
rdata 0.11.2 pyhd8ed1ab_0 conda-forge
re2 2022.04.01 h295c915_0
readline 8.2 h5eee18b_0
referencing 0.35.1 pypi_0 pypi
requests 2.31.0 pypi_0 pypi
requests-oauthlib 1.3.1 pypi_0 pypi
rfc3339-validator 0.1.4 pypi_0 pypi
rfc3986-validator 0.1.1 pypi_0 pypi
rich 13.7.0 pypi_0 pypi
roifile 2024.1.10 pypi_0 pypi
rpds-py 0.18.1 pypi_0 pypi
rsa 4.9 pypi_0 pypi
rtree 1.2.0 pypi_0 pypi
s2n 1.3.27 hdbd6064_0
s3fs 2023.6.0 pypi_0 pypi
scanpy 1.9.6 pypi_0 pypi
scikit-datasets 0.2.4 pyhd8ed1ab_0 conda-forge
scikit-fda 0.9.1 pyhd8ed1ab_0 conda-forge
scikit-image 0.20.0 pypi_0 pypi
scikit-learn 1.4.1.post1 pypi_0 pypi
scipy 1.9.1 pypi_0 pypi
seaborn 0.13.1 pypi_0 pypi
segmentation-models 1.0.1 pypi_0 pypi
segregation 2.5 pypi_0 pypi
send2trash 1.8.3 pypi_0 pypi
session-info 1.0.0 pypi_0 pypi
setuptools 68.0.0 py39h06a4308_0
shapely 2.0.2 pypi_0 pypi
simplejson 3.19.2 pypi_0 pypi
six 1.16.0 pyhd3eb1b0_1
slicerator 1.1.0 pypi_0 pypi
snappy 1.1.10 h6a678d5_1
sniffio 1.3.1 pypi_0 pypi
snuggs 1.4.7 pypi_0 pypi
sortedcontainers 2.4.0 pyhd3eb1b0_0
soupsieve 2.5 pypi_0 pypi
spaghetti 1.7.4 pypi_0 pypi
spatial-image 0.3.0 pypi_0 pypi
spatialdata 0.0.15 pypi_0 pypi
spektral 1.0.6 pypi_0 pypi
spglm 1.1.0 pypi_0 pypi
spint 1.0.7 pypi_0 pypi
splot 1.1.5.post1 pypi_0 pypi
spopt 0.5.0 pypi_0 pypi
spreg 1.4.2 pypi_0 pypi
spvcm 0.3.0 pypi_0 pypi
sqlite 3.41.2 h5eee18b_0
squidpy 1.3.1 pypi_0 pypi
stack_data 0.2.0 pyhd3eb1b0_0
statsmodels 0.14.1 pypi_0 pypi
stdlib-list 0.10.0 pypi_0 pypi
sympy 1.12 pyh04b8f61_3 conda-forge
tbb 2020.3 hfd86e86_0
tblib 3.0.0 pypi_0 pypi
tenacity 8.2.3 pypi_0 pypi
tensorboard 2.8.0 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
tensorflow 2.8.4 pypi_0 pypi
tensorflow-addons 0.16.1 pypi_0 pypi
tensorflow-advanced-segmentation-models 0.4.10 pypi_0 pypi
tensorflow-estimator 2.8.0 pypi_0 pypi
tensorflow-io-gcs-filesystem 0.34.0 pypi_0 pypi
tensorrt 8.6.1.post1 pypi_0 pypi
tensorrt-bindings 8.6.1 pypi_0 pypi
tensorrt-libs 8.6.1 pypi_0 pypi
termcolor 2.4.0 pypi_0 pypi
terminado 0.18.1 pypi_0 pypi
texttable 1.7.0 pypi_0 pypi
threadpoolctl 3.1.0 pypi_0 pypi
tifffile 2023.9.26 pypi_0 pypi
tinycss2 1.3.0 pypi_0 pypi
tk 8.6.12 h1ccaba5_0
tobler 0.11.2 pypi_0 pypi
tomli 2.0.1 pypi_0 pypi
toolz 0.12.0 py39h06a4308_0
torch 2.2.0 pypi_0 pypi
tornado 6.3.3 py39h5eee18b_0
tqdm 4.65.0 py39hb070fc8_0
traitlets 5.7.1 py39h06a4308_0
triton 2.2.0 pypi_0 pypi
typeguard 4.2.1 pypi_0 pypi
types-python-dateutil 2.9.0.20240316 pypi_0 pypi
typing-extensions 4.9.0 pypi_0 pypi
tzdata 2024.1 pypi_0 pypi
umap-learn 0.5.5 py39hf3d152e_1 conda-forge
uri-template 1.3.0 pypi_0 pypi
urllib3 1.26.18 pypi_0 pypi
utf8proc 2.6.1 h5eee18b_1
validators 0.22.0 pypi_0 pypi
wcwidth 0.2.5 pyhd3eb1b0_0
webcolors 1.13 pypi_0 pypi
webencodings 0.5.1 pypi_0 pypi
websocket-client 1.8.0 pypi_0 pypi
werkzeug 3.0.1 pypi_0 pypi
wheel 0.41.2 py39h06a4308_0
widgetsnbextension 4.0.10 pypi_0 pypi
wrapt 1.14.1 pypi_0 pypi
xarray 2023.12.0 pypi_0 pypi
xarray-dataclasses 1.7.0 pypi_0 pypi
xarray-datatree 0.0.13 pypi_0 pypi
xarray-schema 0.0.3 pypi_0 pypi
xarray-spatial 0.3.7 pypi_0 pypi
xyzservices 2022.9.0 py39h06a4308_1
xz 5.4.2 h5eee18b_0
yaml 0.2.5 h7b6447c_0
yarl 1.9.4 pypi_0 pypi
yellowbrick 1.5 pyhd8ed1ab_0 conda-forge
zarr 2.16.1 pypi_0 pypi
zeromq 4.3.4 h2531618_0
zict 3.0.0 py39h06a4308_0
zipp 3.17.0 pypi_0 pypi
zlib 1.2.13 hd590300_5 conda-forge
zstd 1.5.5 hc292b87_0
It appears that the issue you're facing is a ModuleNotFoundError for TensorFlow when you attempt to import it in your Python environment that's activated. Based on the conda list output you've provided, you have TensorFlow version 2.8.4 installed, which is correctly listed among the packages. However, you mentioned getting the error:
ModuleNotFoundError: No module named 'tensorflow'
Here are some potential reasons and solutions for this issue:
Environment Activation: Ensure that you have successfully activated the correct Conda environment where TensorFlow is installed. You can double-check that you are in the tensorflow2 environment by running:
echo $CONDA_DEFAULT_ENV
It should output tensorflow2.
Python Version Compatibility: It seems that your environment has Python 3.8.19 installed, but your package list includes many packages that are meant for Python 3.9 (e.g., specific packages have py39 in their names). If you installed the environment initially with Python 3.9 but switched to Python 3.8 after that, it could create incompatibilities. To resolve this, consider creating a new Conda environment specifically with Python 3.8.19, and reinstall TensorFlow.
You can create a new environment using:
conda create --name new_tf_env python=3.8 tensorflow=2.8.4
conda activate new_tf_env
Corrupted Installation: There might be a corruption in the installation. You could try to reinstall TensorFlow:
pip uninstall tensorflow
pip install tensorflow==2.8.4
Conflicting Dependencies: Check if there are any conflicting packages. Sometimes, having multiple versions of packages that TensorFlow depends on can cause issues. You might want to consider creating a completely new environment and installing only the necessary packages for your project.
Check PATH: Make sure that the Python executable running is indeed from your Conda environment. You can do this by running:
which python
The output should point to the Python executable in the tensorflow2 environment directory.
Kernel Issues in Jupyter: If you are using a Jupyter notebook, make sure that the kernel is set to the tensorflow2 environment. You can install the IPython kernel for the Conda environment to enable this:
python -m ipykernel install --user --name tensorflow2
After following the above steps, try to import TensorFlow again:
import tensorflow as tf
If you still encounter issues, providing any additional error messages or behaviors can help in diagnosing the problem further.