Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting dependencies (Apple Silicon M1 hardware Monterey 12.0.1) #43

Closed
htrivino20 opened this issue Nov 21, 2021 · 6 comments
Closed

Comments

@htrivino20
Copy link

htrivino20 commented Nov 21, 2021

Machine: MacBook Pro M1 2020
OS: macOS Monterey 12.0.1
Python version of venv: Python 3.8.12
Pip version: 21.3.1
I have installed Tensorflow using this guide.

When I execute pip install antspynet I get the following error:

Collecting antspynet
Using cached antspynet-0.1.3-py3-none-any.whl (151 kB)

Collecting tensorflow-probability
Using cached tensorflow_probability-0.15.0-py2.py3-none-any.whl (5.7 MB)

Collecting antspyx
Using cached antspyx-0.2.9.tar.gz (305.4 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: statsmodels in /Users/htrivino/miniforge3/lib/python3.8/site-packages (from antspynet) (0.12.1)
Requirement already satisfied: requests in /Users/htrivino/miniforge3/lib/python3.8/site-packages (from antspynet) (2.26.0)
Requirement already satisfied: scikit-learn in /Users/htrivino/miniforge3/lib/python3.8/site-packages (from antspynet) (1.0.1)

Collecting antspynet
Using cached antspynet-0.1.2-py3-none-any.whl (143 kB)
Using cached antspynet-0.1.1-py3-none-any.whl (140 kB)
ERROR: Cannot install antspynet==0.1.1, antspynet==0.1.2 and antspynet==0.1.3 because these package versions have conflicting dependencies.

The conflict is caused by:
antspynet 0.1.3 depends on tensorflow
antspynet 0.1.2 depends on tensorflow
antspynet 0.1.1 depends on tensorflow

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

This is the conda list of the environment.

# packages in environment at /Users/htrivino/miniforge3:
#
# Name                    Version                   Build  Channel
absl-py                   0.10.0             pyhd8ed1ab_1    conda-forge
aiohttp                   3.7.4.post0      py38hea4295b_1    conda-forge
ants                      0.0.7                    pypi_0    pypi
appnope                   0.1.2            py38h10201cd_2    conda-forge
argon2-cffi               21.1.0           py38hea4295b_2    conda-forge
asgiref                   3.4.1                    pypi_0    pypi
astor                     0.8.1              pyh9f0ad1d_0    conda-forge
astunparse                1.6.3              pyhd8ed1ab_0    conda-forge
async-timeout             3.0.1                   py_1000    conda-forge
async_generator           1.10                       py_0    conda-forge
attrs                     21.2.0             pyhd8ed1ab_0    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
bleach                    4.1.0              pyhd8ed1ab_0    conda-forge
blinker                   1.4                        py_1    conda-forge
bokeh                     2.3.3            py38h10201cd_0    conda-forge
brotlipy                  0.7.0           py38hea4295b_1003    conda-forge
c-ares                    1.18.1               h3422bc3_0    conda-forge
ca-certificates           2021.10.8            h4653dfc_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cachetools                4.2.4              pyhd8ed1ab_0    conda-forge
certifi                   2021.10.8        py38h10201cd_1    conda-forge
cffi                      1.15.0           py38hc67bbb8_0    conda-forge
chardet                   4.0.0            py38h10201cd_2    conda-forge
charset-normalizer        2.0.0              pyhd8ed1ab_0    conda-forge
clang                     5.0                      pypi_0    pypi
click                     8.0.3            py38h10201cd_1    conda-forge
cloudpickle               2.0.0              pyhd8ed1ab_0    conda-forge
colorama                  0.4.4              pyh9f0ad1d_0    conda-forge
conda                     4.10.3           py38h10201cd_3    conda-forge
conda-package-handling    1.7.3            py38hea4295b_1    conda-forge
cryptography              35.0.0           py38h10d4710_2    conda-forge
cycler                    0.11.0             pyhd8ed1ab_0    conda-forge
cytoolz                   0.11.2           py38hea4295b_1    conda-forge
dask                      2021.11.1          pyhd8ed1ab_0    conda-forge
dask-core                 2021.11.1          pyhd8ed1ab_0    conda-forge
dataclasses               0.8                pyhc8e2a94_3    conda-forge
decorator                 5.1.0              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
distributed               2021.11.1        py38h10201cd_0    conda-forge
django                    3.2.9                    pypi_0    pypi
entrypoints               0.3             pyhd8ed1ab_1003    conda-forge
flatbuffers               1.12                     pypi_0    pypi
freetype                  2.10.4               h17b34a0_1    conda-forge
fsspec                    2021.11.0          pyhd8ed1ab_0    conda-forge
gast                      0.4.0              pyh9f0ad1d_0    conda-forge
gevent                    21.8.0                   pypi_0    pypi
google-auth               1.35.0             pyh6c4a22f_0    conda-forge
google-auth-oauthlib      0.4.6              pyhd8ed1ab_0    conda-forge
google-pasta              0.2.0              pyh8c360ce_0    conda-forge
greenlet                  1.1.2                    pypi_0    pypi
grpcio                    1.41.1           py38h69ee544_1    conda-forge
h5py                      3.1.0           nompi_py38h032b01a_100    conda-forge
hdf5                      1.10.6          nompi_h0fc092c_1114    conda-forge
heapdict                  1.0.1                      py_0    conda-forge
idna                      3.1                pyhd3deb0d_0    conda-forge
importlib-metadata        4.8.2            py38h10201cd_0    conda-forge
importlib_resources       5.4.0              pyhd8ed1ab_0    conda-forge
ipykernel                 5.5.5            py38h2cb4d76_0    conda-forge
ipython                   7.29.0           py38h2cb4d76_1    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.6.5              pyhd8ed1ab_0    conda-forge
jbig                      2.1               h3422bc3_2003    conda-forge
jedi                      0.18.0           py38h10201cd_3    conda-forge
jinja2                    3.0.3              pyhd8ed1ab_0    conda-forge
joblib                    1.1.0              pyhd8ed1ab_0    conda-forge
jpeg                      9d                   h27ca646_0    conda-forge
jsonschema                4.2.1              pyhd8ed1ab_0    conda-forge
jupyter                   1.0.0            py38h10201cd_6    conda-forge
jupyter_client            7.0.6              pyhd8ed1ab_0    conda-forge
jupyter_console           6.4.0              pyhd8ed1ab_0    conda-forge
jupyter_core              4.9.1            py38h10201cd_0    conda-forge
jupyterlab_pygments       0.1.2              pyh9f0ad1d_0    conda-forge
jupyterlab_widgets        1.0.2              pyhd8ed1ab_0    conda-forge
keras                     2.6.0              pyhd8ed1ab_0    conda-forge
keras-preprocessing       1.1.2              pyhd8ed1ab_0    conda-forge
kiwisolver                1.3.2            py38h1670459_1    conda-forge
krb5                      1.19.2               hd92b7a7_3    conda-forge
lcms2                     2.12                 had6a04f_0    conda-forge
lerc                      3.0                  hbdafb3b_0    conda-forge
libblas                   3.9.0           12_osxarm64_openblas    conda-forge
libcblas                  3.9.0           12_osxarm64_openblas    conda-forge
libclang                  11.1.0          default_h0fdd720_1    conda-forge
libcurl                   7.80.0               h8fe1914_0    conda-forge
libcxx                    12.0.1               h168391b_0    conda-forge
libdeflate                1.8                  h3422bc3_0    conda-forge
libedit                   3.1.20191231         hc8eb9b7_2    conda-forge
libev                     4.33                 h642e427_1    conda-forge
libffi                    3.4.2                h3422bc3_5    conda-forge
libgfortran               5.0.0.dev0      11_0_1_hf114ba7_23    conda-forge
libgfortran5              11.0.1.dev0         hf114ba7_23    conda-forge
liblapack                 3.9.0           12_osxarm64_openblas    conda-forge
libllvm11                 11.1.0               h93073aa_2    conda-forge
libnghttp2                1.43.0               he4cd7f6_1    conda-forge
libopenblas               0.3.18          openmp_h5dd58f0_0    conda-forge
libpng                    1.6.37               hf7e6567_2    conda-forge
libprotobuf               3.19.1               hccf11d3_0    conda-forge
libsodium                 1.0.18               h27ca646_1    conda-forge
libssh2                   1.10.0               hb80f160_2    conda-forge
libtiff                   4.3.0                h74060c4_2    conda-forge
libwebp-base              1.2.1                h3422bc3_0    conda-forge
libzlib                   1.2.11            hee7b306_1013    conda-forge
llvm-openmp               12.0.1               hf3c4609_1    conda-forge
locket                    0.2.0                      py_2    conda-forge
lz4-c                     1.9.3                hbdafb3b_1    conda-forge
markdown                  3.3.4              pyhd8ed1ab_0    conda-forge
markupsafe                2.0.1            py38hea4295b_1    conda-forge
matplotlib-base           3.4.3            py38hb140015_1    conda-forge
matplotlib-inline         0.1.3              pyhd8ed1ab_0    conda-forge
mistune                   0.8.4           py38hea4295b_1005    conda-forge
msgpack-python            1.0.2            py38h1670459_2    conda-forge
multidict                 5.2.0            py38hea4295b_1    conda-forge
nb_conda_kernels          2.3.1            py38h10201cd_0    conda-forge
nbclient                  0.5.5              pyhd8ed1ab_0    conda-forge
nbconvert                 6.2.0            py38h10201cd_0    conda-forge
nbformat                  5.1.3              pyhd8ed1ab_0    conda-forge
ncurses                   6.2                  h9aa5885_4    conda-forge
nest-asyncio              1.5.1              pyhd8ed1ab_0    conda-forge
notebook                  6.4.5              pyha770c72_0    conda-forge
numpy                     1.19.5           py38hbf7bb01_2    conda-forge
oauthlib                  3.1.1              pyhd8ed1ab_0    conda-forge
olefile                   0.46               pyh9f0ad1d_1    conda-forge
openjpeg                  2.4.0                h062765e_1    conda-forge
openssl                   1.1.1l               h3422bc3_0    conda-forge
opt_einsum                3.3.0              pyhd8ed1ab_1    conda-forge
packaging                 21.0               pyhd8ed1ab_0    conda-forge
pandas                    1.3.4            py38h3777fb4_1    conda-forge
pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
parso                     0.8.2              pyhd8ed1ab_0    conda-forge
partd                     1.2.0              pyhd8ed1ab_0    conda-forge
patsy                     0.5.2              pyhd8ed1ab_0    conda-forge
pexpect                   4.8.0              pyh9f0ad1d_2    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    8.4.0            py38h02acf36_0    conda-forge
pip                       21.3.1                   pypi_0    pypi
plotly                    5.3.1              pyhd8ed1ab_0    conda-forge
prometheus_client         0.12.0             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.22             pyha770c72_0    conda-forge
prompt_toolkit            3.0.22               hd8ed1ab_0    conda-forge
protobuf                  3.19.1           py38h6f2b01f_1    conda-forge
psutil                    5.8.0            py38hea4295b_2    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pyasn1                    0.4.8                      py_0    conda-forge
pyasn1-modules            0.2.7                      py_0    conda-forge
pycosat                   0.6.3           py38hea4295b_1009    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pygments                  2.10.0             pyhd8ed1ab_0    conda-forge
pyjwt                     2.3.0              pyhd8ed1ab_0    conda-forge
pyopenssl                 21.0.0             pyhd8ed1ab_0    conda-forge
pyparsing                 3.0.5              pyhd8ed1ab_0    conda-forge
pyrsistent                0.18.0           py38hea4295b_0    conda-forge
pysocks                   1.7.1            py38h10201cd_4    conda-forge
python                    3.8.12          hab31e5c_2_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.8                      2_cp38    conda-forge
pytz                      2021.3             pyhd8ed1ab_0    conda-forge
pyu2f                     0.1.5              pyhd8ed1ab_0    conda-forge
pyyaml                    6.0              py38hea4295b_3    conda-forge
pyzmq                     22.3.0           py38h51b17a6_1    conda-forge
readline                  8.1                  hedafd6a_0    conda-forge
requests                  2.26.0             pyhd8ed1ab_0    conda-forge
requests-oauthlib         1.3.0              pyh9f0ad1d_0    conda-forge
rsa                       4.7.2              pyh44b312d_0    conda-forge
ruamel_yaml               0.15.80         py38hea4295b_1006    conda-forge
scikit-learn              1.0.1            py38hfeda2c9_1    conda-forge
scipy                     1.7.2            py38hd0c9ec0_0    conda-forge
seaborn                   0.11.2               hd8ed1ab_0    conda-forge
seaborn-base              0.11.2             pyhd8ed1ab_0    conda-forge
send2trash                1.8.0              pyhd8ed1ab_0    conda-forge
setuptools                58.5.3           py38h10201cd_0    conda-forge
six                       1.15.0             pyh9f0ad1d_0    conda-forge
sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
sqlite                    3.36.0               h72a2b83_2    conda-forge
sqlparse                  0.4.2                    pypi_0    pypi
statsmodels               0.12.1           py38h8369297_2    conda-forge
tblib                     1.7.0              pyhd8ed1ab_0    conda-forge
tenacity                  8.0.1              pyhd8ed1ab_0    conda-forge
tensorboard               2.6.0              pyhd8ed1ab_1    conda-forge
tensorboard-data-server   0.6.0            py38h10d4710_1    conda-forge
tensorboard-plugin-wit    1.8.0              pyh44b312d_0    conda-forge
tensorflow-deps           2.6.0                         0    apple
tensorflow-estimator      2.6.0            py38hddd8853_0    conda-forge
tensorflow-macos          2.6.0                    pypi_0    pypi
tensorflow-metal          0.2.0                    pypi_0    pypi
termcolor                 1.1.0                      py_2    conda-forge
terminado                 0.12.1           py38h10201cd_1    conda-forge
testpath                  0.5.0              pyhd8ed1ab_0    conda-forge
threadpoolctl             3.0.0              pyh8a188c0_0    conda-forge
tk                        8.6.11               he1e0b03_1    conda-forge
toolz                     0.11.2             pyhd8ed1ab_0    conda-forge
tornado                   6.1              py38hea4295b_2    conda-forge
tqdm                      4.62.3             pyhd8ed1ab_0    conda-forge
traitlets                 5.1.1              pyhd8ed1ab_0    conda-forge
tsfresh                   0.17.0                     py_0    conda-forge
typeguard                 2.13.0             pyhd8ed1ab_0    conda-forge
typing-extensions         3.7.4.3                       0    conda-forge
typing_extensions         3.7.4.3                    py_0    conda-forge
tzdata                    2021e                he74cb21_0    conda-forge
urllib3                   1.26.7             pyhd8ed1ab_0    conda-forge
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
webencodings              0.5.1                      py_1    conda-forge
werkzeug                  2.0.1              pyhd8ed1ab_0    conda-forge
wheel                     0.35.1             pyh9f0ad1d_0    conda-forge
widgetsnbextension        3.5.2            py38h10201cd_0    conda-forge
wrapt                     1.12.1           py38hea4295b_3    conda-forge
xz                        5.2.5                h642e427_1    conda-forge
yaml                      0.2.5                h642e427_0    conda-forge
yarl                      1.7.2            py38hea4295b_1    conda-forge
zeromq                    4.3.4                hbdafb3b_1    conda-forge
zict                      2.0.0                      py_0    conda-forge
zipp                      3.6.0              pyhd8ed1ab_0    conda-forge
zlib                      1.2.11            hee7b306_1013    conda-forge
zope-event                4.5.0                    pypi_0    pypi
zope-interface            5.4.0                    pypi_0    pypi
zstd                      1.5.0                h861e0a7_0    conda-forge
@ntustison
Copy link
Member

I don't explicitly install via pip (instead python setup.py install). I just tried it with a newly installed Monterey OSX (not the M1 hardware, though) and didn't have issues. I'm guessing not many, if any, users have the M1 hardware currently.

@ghost
Copy link

ghost commented Nov 24, 2021

Hey, I see you installed tensorflow on max os 12. I am trying to do the same, using the guide you mention, but i always get
ERROR: tensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl is not a supported wheel on this platform.
as the output. What should I do? I checked all the prerequisites and the sanity checks.

My machine is a macbook pro 2020 M1

@htrivino20
Copy link
Author

Hey, I see you installed tensorflow on max os 12. I am trying to do the same, using the guide you mention, but i always get ERROR: tensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl is not a supported wheel on this platform. as the output. What should I do? I checked all the prerequisites and the sanity checks.

My machine is a macbook pro 2020 M1

I had the same issue,  pip install tensorflow-macos worked upgrading pip pip install --upgrade pip. More info

@isaacdonis
Copy link

For others, upgrading pip and following this guide helped me resolve my issue on my 2021 MacBook Pro.

@ntustison
Copy link
Member

Awesome. Thanks for posting.

@ntustison
Copy link
Member

As a follow-up, finally got the M1 and was able to get both ANTsPyNet and ANTsRNet up and running without too much difficulty. Thanks for pointing to the link above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants