Here is a solution that worked for me in under 5 minutes: The conda install anaconda might work, but it takes just way too long - more than 24 hours on my machine. *findall(r"^\s*-\s*(\S+)$", stdin.read(), MULTILINE) # Here are the offenders "-force", # Maybe add a '-force'/'-force-reinstall' (I didn't add it for the one-liner above) Note: by "ORIGINAL_COMMAND", I'm referring to any command that gives you the error message (without any other side-effects, ideally) 2>&1 | python -c "import sys,re,conda.cli ('conda','install','-y',*re.findall(r'^\s*-\s*(\S+)$',(),re.MULTILINE))"Įxpanding the above one-liner: from re import findall, MULTILINE (and you would have to repeat for all the packages) My “Shortcut”Īlternatively, cook up an (ugly) one-liner (this should work for Windows as well as other platforms) The following NEW packages will be INSTALLED: Thus, with a few copy-&-paste's, you could: > conda install intel/win-64::ipython=6.3.1=p圓6_3 intel/win-64::prompt_toolkit=1.0.15=p圓6_2Īs mentioned in other answers, the idea is to have some sort of re- installation to occur for the inconsistent packages. The following packages are causing the inconsistency: The environment is inconsistent, please check the package plan carefully Given a situation like the following, > conda update -c intel -all Package cache : C:\Users\NAME\Continuum\pkgsĬ:\Users\NAME\AppData\Local\conda\conda\pkgsĮnvs directories : C:\Users\NAME\Continuum\envsĬ:\Users\NAME\AppData\Local\conda\conda\envs Populated config files : C:\Users\NAME\.condarcīase environment : C:\Users\NAME\Continuum (writable) User config file : C:\Users\NAME\.condarc I tried with conda clean -all and then conda update -all but it persists.Īctive env location : C:\Users\NAME\Continuum The following package are causing the inconsistency: In addition to restoring homebrew hdf5 and swig.I tried to update or install new packages from anaconda and lately, this message has appeared: The environment is inconsistent, please check the package plan carefully This is an updated version that also builds dgl. ĬPATH=`brew -prefix` SDKROOT=`xcrun -show-sdk-path` conda install -c pytest pytest hdf5 h5py -yĬPATH=`brew -prefix` SDKROOT=`xcrun -show-sdk-path` pip3 install tensorflow-macos -force-reinstallĬPATH=`brew -prefix` SDKROOT=`xcrun -show-sdk-path` pip3 install tensorflow-metal -force-reinstall Python -m pytest src/deepchem/deepchem/models/tests/ -k tensorflowĬonda install -c anaconda pip cython pkgconfig -yĬmake -DUSE_OPENMP=off -DCMAKE_APPLE_SILICON_PROCESSOR=arm64 -DCMAKE_C_FLAGS='-DXBYAK_DONT_USE_MAP_JIT' -DCMAKE_CXX_FLAGS='-DXBYAK_DONT_USE_MAP_JIT' -DUSE_AVX=OFF -DUSE_LIBXSMM=OFF. Pip3 install vina -global-option=build_ext -global-option="-L/$(brew install boost || brew -cellar boost)" -global-option="-L/$(brew install boost-python3 || brew -cellar boost-python3)"Ĭonda install -c pytorch pytorch torchvision -y Particularly I’m not sure about the install locations, and I wanna make sure it doesn’t bork an existing installation (I do not have an existing installation of conda). Could you try running this on your machine and let me know if it installs correctly? (Some of the tests should pass, but not all). Hi, the brew packages are still needed for boost and boost-python3. The main issues seem to stem from lack of support in tensorflow-metal for certain optimizers. However–they are definitely using the GPU. I have some of the tests working, but they are quite slow. Make sure to run it with the -n flag the first time to download and reinstall miniforge3. I am also working on getting it to work with PyTorch. Please if anyone else who has an M1 Mac, if they are interested, I would like to make sure that this works on any machine, not just mine. Python -m pytest src/deepchem/deepchem/models/tests/ -lfīe aware that this also installs globally some brew packages. Python -m pip install -e git+ -force-reinstall Pip3 install tensorflow-metal -force-reinstall Pip3 install tensorflow-macos -force-reinstall Pip3 install joblib pandas scikit-learn scipy rdkit-pypi flaky optax dm-haiku biopython Pip3 install vina -global-option=build_ext -global-option="-L/$(brew -cellar boost)" -global-option="-L/$(brew -cellar boost-python3)" Source ~/miniforge3/etc/profile.d/conda.shĬonda install -c conda-forge rust pdbfixer mdtraj -yĬonda install -c anaconda pip h5py cython pkgconfig -yĬonda install -c apple tensorflow-deps -force-reinstall -y Rm -rf /private/var/folders/w2/*/T/deepchem* || trueĬhmod +x. Note that the ordering of elements in this script is important: #!/bin/zsh This script should bootstrap without any requirements. I am working on creating a script for building DeepChem on M1 Mac.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |