Cannot Install from source and Anaconda
See original GitHub issueIssue Description
Could not install beanmachine from GitHub code using the recommended Anaconda installation
Steps to Reproduce
git clone https://github.com/facebookresearch/beanmachine.git
cd beanmachine
conda create -n {env name} python=3.8; conda activate {env name}
conda install -c conda-forge boost-cpp eigen=3.4.0
python -m pip install .
raises the error
ERROR: Could not find a version that satisfies the requirement functorch>=0.1.0 (from beanmachine) (from versions: none)
ERROR: No matching distribution found for functorch>=0.1.0
Expected Behavior
Successful installation
System Info
- MacOS 12.2.1 (M1 chip)
- PyTorch Version 1.10.0
- Python version 3.8.13
Additional Context
Complete trace
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tqdm>=4.46.0
Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting astor>=0.7.1
Using cached astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting statsmodels>=0.12.0
Using cached statsmodels-0.13.2-cp38-cp38-macosx_11_0_arm64.whl (9.1 MB)
Collecting black==21.4b2
Using cached black-21.4b2-py3-none-any.whl (130 kB)
Collecting plotly>=2.2.1
Using cached plotly-5.7.0-py2.py3-none-any.whl (28.8 MB)
Collecting xarray>=0.16.0
Using cached xarray-2022.3.0-py3-none-any.whl (870 kB)
Collecting botorch>=0.5.1
Using cached botorch-0.6.4-py3-none-any.whl (363 kB)
Collecting gpytorch>=1.3.0
Using cached gpytorch-1.6.0-py2.py3-none-any.whl
Collecting graphviz>=0.17
Using cached graphviz-0.20-py3-none-any.whl (46 kB)
Collecting pandas>=0.24.2
Using cached pandas-1.4.2-cp38-cp38-macosx_11_0_arm64.whl (9.9 MB)
Collecting scipy>=0.16
Using cached scipy-1.8.0-cp38-cp38-macosx_12_0_arm64.whl (28.5 MB)
ERROR: Could not find a version that satisfies the requirement functorch>=0.1.0 (from beanmachine) (from versions: none)
ERROR: No matching distribution found for functorch>=0.1.0
Issue Analytics
- State:
- Created a year ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Troubleshooting
Cannot get conda to run after installing; Recovering your Anaconda installation ... and use `conda config --show-sources` to view config file locations.
Read more >conda 4.7.10 cannot install packages, make new envs, or ...
Current Behavior trying to update, etc. the environment is solved, but when the packages are getting downloaded I get a popup windows error: ......
Read more >Cannot Install Python Modules after Installing Anaconda
Install a C compiler, and then build the package sources you downloaded (via the python setup.py install command); Find a pre-compiled version of...
Read more >Installing with Anaconda / conda
This can be obtained by installing the Anaconda Distribution (a free Python ... For installing GeoPandas from source, the same note on the...
Read more >Using R in Conda
Also r-studio available on the Anaconda package site downgrades the r-base from 4.0.3 ... Note: You can not update R-packages installed through r-essentials ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @himaghna, seems like this particular error is caused by the functorch dependency that we recently introduced, which doesn’t have a prebuild binary for M1 macbook. You can try manually install functorch from source with the following command (you can find more discussion around the issue here: https://github.com/pytorch/functorch/issues/608#issuecomment-1088727605):
I will also update the setup script for Bean Machine to make the functorch module optional. Thanks for reporting the installation issue 😃.
Looks like this is an issue coming from the
netCDF4
package this time. Could you try installing a MacOS ARM64netCDF4
wheel from here (https://github.com/Unidata/netcdf4-python/issues/1148#issuecomment-1076963484) and see if that works for you? If the issue still persist, you might have to report to the netCDF4 folks there to see if they can help resolving the issue 😃