-
-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
Description
Solution to issue cannot be found in the documentation.
- I checked the documentation.
Issue
$ conda create --name tf tensorflow=2.19 python=3.12 --yes
$ conda activate tf
$ python -c "import tensorflow"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/mark/miniforge3/envs/tf/lib/python3.12/site-packages/tensorflow/__init__.py", line 40, in <module>
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mark/miniforge3/envs/tf/lib/python3.12/site-packages/tensorflow/python/pywrap_tensorflow.py", line 37, in <module>
self_check.preload_check()
File "/home/mark/miniforge3/envs/tf/lib/python3.12/site-packages/tensorflow/python/platform/self_check.py", line 63, in preload_check
from tensorflow.python.platform import _pywrap_cpu_feature_guard
ImportError: libtensorflow_cc.so.2: cannot enable executable stack as shared object requires: Invalid argument
i feel like we "fixed" this before by adding some CFLAGS?
Installed packages
$ mamba list
List of packages in environment: "/home/mark/miniforge3/envs/tf"
Name Version Build Channel
───────────────────────────────────────────────────────────────────────────────
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
_x86_64-microarch-level 3 2_skylake conda-forge
absl-py 2.3.1 pyhd8ed1ab_0 conda-forge
astunparse 1.6.3 pyhd8ed1ab_3 conda-forge
brotli-python 1.1.0 py312h1289d80_4 conda-forge
bzip2 1.0.8 hda65f42_8 conda-forge
c-ares 1.34.5 hb9d3cd8_0 conda-forge
ca-certificates 2025.10.5 hbd8a1cb_0 conda-forge
cached-property 1.5.2 hd8ed1ab_1 conda-forge
cached_property 1.5.2 pyha770c72_1 conda-forge
certifi 2025.10.5 pyhd8ed1ab_0 conda-forge
cffi 2.0.0 py312h460c074_1 conda-forge
charset-normalizer 3.4.4 pyhd8ed1ab_0 conda-forge
flatbuffers 25.2.10 hb7832b1_0 conda-forge
gast 0.6.0 pyhd8ed1ab_0 conda-forge
giflib 5.2.2 hd590300_0 conda-forge
google-pasta 0.2.0 pyhd8ed1ab_2 conda-forge
grpcio 1.73.1 py312h6f3464c_1 conda-forge
h2 4.3.0 pyhcf101f3_0 conda-forge
h5py 3.15.1 nompi_py312ha4f8f14_100 conda-forge
hdf5 1.14.6 nompi_h6e4c0c1_103 conda-forge
hpack 4.1.0 pyhd8ed1ab_0 conda-forge
hyperframe 6.1.0 pyhd8ed1ab_0 conda-forge
icu 75.1 he02047a_0 conda-forge
idna 3.11 pyhd8ed1ab_0 conda-forge
importlib-metadata 8.7.0 pyhe01879c_1 conda-forge
keras 3.11.2 pyh753f3f9_0 conda-forge
keyutils 1.6.3 hb9d3cd8_0 conda-forge
krb5 1.21.3 h659f571_0 conda-forge
ld_impl_linux-64 2.44 h1aa0949_3 conda-forge
libabseil 20250512.1 cxx17_hba17884_0 conda-forge
libaec 1.1.4 h3f801dc_0 conda-forge
libblas 3.9.0 37_h4a7cf45_openblas conda-forge
libcblas 3.9.0 37_h0358290_openblas conda-forge
libcurl 8.16.0 h4e3cde8_0 conda-forge
libedit 3.1.20250104 pl5321h7949ede_0 conda-forge
libev 4.33 hd590300_2 conda-forge
libexpat 2.7.1 hecca717_0 conda-forge
libffi 3.5.2 h9ec8514_0 conda-forge
libgcc 15.2.0 h767d61c_7 conda-forge
libgcc-ng 15.2.0 h69a702a_7 conda-forge
libgfortran 15.2.0 h69a702a_7 conda-forge
libgfortran5 15.2.0 hcd61629_7 conda-forge
libgomp 15.2.0 h767d61c_7 conda-forge
libgrpc 1.73.1 h3288cfb_1 conda-forge
libjpeg-turbo 3.1.0 hb9d3cd8_0 conda-forge
liblapack 3.9.0 37_h47877c9_openblas conda-forge
liblzma 5.8.1 hb9d3cd8_2 conda-forge
libml_dtypes-headers 0.5.3 h707e725_0 conda-forge
libnghttp2 1.67.0 had1ee68_0 conda-forge
libnsl 2.0.1 hb9d3cd8_1 conda-forge
libopenblas 0.3.30 pthreads_h94d23a6_2 conda-forge
libpng 1.6.50 h421ea60_1 conda-forge
libprotobuf 6.31.1 h49aed37_2 conda-forge
libre2-11 2025.08.12 h7b12aa8_1 conda-forge
libsqlite 3.50.4 h0c1763c_0 conda-forge
libssh2 1.11.1 hcf80075_0 conda-forge
libstdcxx 15.2.0 h8f9b012_7 conda-forge
libstdcxx-ng 15.2.0 h4852527_7 conda-forge
libtensorflow_cc 2.19.0 cpu_h3deb7bb_52 conda-forge
libtensorflow_framework 2.19.0 cpu_h18e7061_52 conda-forge
libuuid 2.41.2 he9a06e4_0 conda-forge
libxcrypt 4.4.36 hd590300_1 conda-forge
libzlib 1.3.1 hb9d3cd8_2 conda-forge
markdown 3.9 pyhd8ed1ab_0 conda-forge
markdown-it-py 4.0.0 pyhd8ed1ab_0 conda-forge
markupsafe 3.0.3 py312h8a5da7c_0 conda-forge
mdurl 0.1.2 pyhd8ed1ab_1 conda-forge
ml_dtypes 0.5.1 py312hf79963d_1 conda-forge
namex 0.1.0 pyhd8ed1ab_0 conda-forge
ncurses 6.5 h2d0b736_3 conda-forge
numpy 2.3.4 py312h33ff503_0 conda-forge
openssl 3.5.4 h26f9b46_0 conda-forge
opt_einsum 3.4.0 pyhd8ed1ab_1 conda-forge
optree 0.17.0 py312hd9148b4_1 conda-forge
packaging 25.0 pyh29332c3_1 conda-forge
pip 25.2 pyh8b19718_0 conda-forge
protobuf 6.31.1 py312hb8af0ac_2 conda-forge
pycparser 2.22 pyh29332c3_1 conda-forge
pygments 2.19.2 pyhd8ed1ab_0 conda-forge
pysocks 1.7.1 pyha55dd90_7 conda-forge
python 3.12.12 hd63d673_1_cpython conda-forge
python-flatbuffers 25.9.23 pyh1e1bc0e_0 conda-forge
python_abi 3.12 8_cp312 conda-forge
re2 2025.08.12 h5301d42_1 conda-forge
readline 8.2 h8c095d6_2 conda-forge
requests 2.32.5 pyhd8ed1ab_0 conda-forge
rich 14.2.0 pyhcf101f3_0 conda-forge
setuptools 80.9.0 pyhff2d567_0 conda-forge
six 1.17.0 pyhe01879c_1 conda-forge
snappy 1.2.2 h03e3b7b_0 conda-forge
tensorboard 2.19.0 pyhd8ed1ab_0 conda-forge
tensorboard-data-server 0.7.0 py312hee9fe19_3 conda-forge
tensorflow 2.19.0 cpu_py312h69ecde4_52 conda-forge
tensorflow-base 2.19.0 cpu_py312h486b088_52 conda-forge
tensorflow-estimator 2.19.0 cpu_py312ha43043b_52 conda-forge
termcolor 3.1.0 pyhd8ed1ab_0 conda-forge
tk 8.6.13 noxft_hd72426e_102 conda-forge
typing-extensions 4.15.0 h396c80c_0 conda-forge
typing_extensions 4.15.0 pyhcf101f3_0 conda-forge
tzdata 2025b h78e105d_0 conda-forge
urllib3 2.5.0 pyhd8ed1ab_0 conda-forge
werkzeug 3.1.3 pyhd8ed1ab_1 conda-forge
wheel 0.45.1 pyhd8ed1ab_1 conda-forge
wrapt 2.0.0 py312h4c3975b_0 conda-forge
zipp 3.23.0 pyhd8ed1ab_0 conda-forge
zstandard 0.25.0 py312h5253ce2_0 conda-forge
zstd 1.5.7 hb8e6e7a_2 conda-forgeEnvironment info
$ conda info
active environment : tf
active env location : /home/mark/miniforge3/envs/tf
shell level : 1
user config file : /home/mark/.condarc
populated config files : /home/mark/miniforge3/.condarc
/home/mark/.condarc
conda version : 25.9.0
conda-build version : 25.9.0
python version : 3.12.11.final.0
solver : libmamba (default)
virtual packages : __archspec=1=skylake
__conda=25.9.0=0
__glibc=2.42=0
__linux=6.17.0=0
__unix=0=0
base environment : /home/mark/miniforge3 (writable)
conda av data dir : /home/mark/miniforge3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
package cache : /home/mark/miniforge3/pkgs
/home/mark/.conda/pkgs
envs directories : /home/mark/miniforge3/envs
/home/mark/.conda/envs
platform : linux-64
user-agent : conda/25.9.0 requests/2.32.5 CPython/3.12.11 Linux/6.17.0-5-generic ubuntu/25.10 glibc/2.42 solver/libmamba conda-libmamba-solver/25.4.0 libmambapy/2.3.2
UID:GID : 1000:1000
netrc file : None
offline mode : FalseReactions are currently unavailable