Open SichangHe opened 1 year ago
This is what I get with Python3.9 instead:
$ python3.9 -m pip install fedml
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting fedml
Using cached fedml-0.7.447-py2.py3-none-any.whl (918 kB)
Collecting PyYAML
Downloading PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl (173 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 174.0/174.0 kB 175.8 kB/s eta 0:00:00
Collecting pynvml
Downloading pynvml-11.5.0-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.1/53.1 kB 179.8 kB/s eta 0:00:00
Collecting httpx
Using cached httpx-0.23.3-py3-none-any.whl (71 kB)
Collecting h5py
Downloading h5py-3.8.0-cp39-cp39-macosx_11_0_arm64.whl (2.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 471.3 kB/s eta 0:00:00
Collecting dill
Using cached dill-0.3.6-py3-none-any.whl (110 kB)
Collecting boto3
Using cached boto3-1.26.78-py3-none-any.whl (132 kB)
Collecting multiprocess
Downloading multiprocess-0.70.14-py39-none-any.whl (132 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.9/132.9 kB 1.1 MB/s eta 0:00:00
Collecting aiohttp>=3.8.1
Downloading aiohttp-3.8.4-cp39-cp39-macosx_11_0_arm64.whl (338 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 338.3/338.3 kB 859.7 kB/s eta 0:00:00
Requirement already satisfied: numpy in /opt/homebrew/lib/python3.9/site-packages (from fedml) (1.22.3)
Collecting wandb==0.13.2
Downloading wandb-0.13.2-py2.py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 1.2 MB/s eta 0:00:00
Collecting scikit-learn
Downloading scikit_learn-1.2.1-cp39-cp39-macosx_12_0_arm64.whl (8.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.4/8.4 MB 2.6 MB/s eta 0:00:00
Requirement already satisfied: click in /opt/homebrew/lib/python3.9/site-packages (from fedml) (8.0.4)
Collecting wget
Using cached wget-3.2.zip (10 kB)
Preparing metadata (setup.py) ... done
Collecting torch
Downloading torch-1.13.1-cp39-none-macosx_11_0_arm64.whl (53.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.2/53.2 MB 4.1 MB/s eta 0:00:00
Collecting networkx
Downloading networkx-3.0-py3-none-any.whl (2.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 4.1 MB/s eta 0:00:00
Collecting spacy
Downloading spacy-3.5.0-cp39-cp39-macosx_11_0_arm64.whl (6.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.6/6.6 MB 4.5 MB/s eta 0:00:00
Collecting eciespy
Downloading eciespy-0.3.13-py3-none-any.whl (11 kB)
Collecting python-rapidjson>=0.9.1
Using cached python-rapidjson-1.9.tar.gz (223 kB)
Preparing metadata (setup.py) ... done
Collecting fastapi==0.92.0
Downloading fastapi-0.92.0-py3-none-any.whl (56 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.2/56.2 kB 1.9 MB/s eta 0:00:00
Collecting numpy
Downloading numpy-1.21.0-cp39-cp39-macosx_11_0_arm64.whl (12.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.1/12.1 MB 5.1 MB/s eta 0:00:00
Requirement already satisfied: attrs in /opt/homebrew/lib/python3.9/site-packages (from fedml) (22.1.0)
Collecting PyNaCl
Downloading PyNaCl-1.5.0-cp36-abi3-macosx_10_10_universal2.whl (349 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 349.9/349.9 kB 12.0 MB/s eta 0:00:00
Collecting redis
Using cached redis-4.5.1-py3-none-any.whl (238 kB)
Collecting tqdm
Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 kB 2.9 MB/s eta 0:00:00
Requirement already satisfied: pandas in /opt/homebrew/lib/python3.9/site-packages (from fedml) (1.4.1)
Collecting torchvision
Downloading torchvision-0.14.1-cp39-cp39-macosx_11_0_arm64.whl (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 6.1 MB/s eta 0:00:00
Collecting smart-open==5.2.1
Downloading smart_open-5.2.1-py3-none-any.whl (58 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 kB 1.9 MB/s eta 0:00:00
Collecting nvidia-ml-py3
Downloading nvidia-ml-py3-7.352.0.tar.gz (19 kB)
Preparing metadata (setup.py) ... done
Collecting uvicorn
Downloading uvicorn-0.20.0-py3-none-any.whl (56 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.9/56.9 kB 2.0 MB/s eta 0:00:00
Collecting typing-extensions==4.4.0
Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting gensim
Downloading gensim-4.3.0.tar.gz (23.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.3/23.3 MB 7.8 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running egg_info
creating /private/var/folders/g4/csj76blj7wn1hpq049gv1wjw0000gn/T/pip-pip-egg-info-dfq1sblv/gensim.egg-info
writing /private/var/folders/g4/csj76blj7wn1hpq049gv1wjw0000gn/T/pip-pip-egg-info-dfq1sblv/gensim.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/g4/csj76blj7wn1hpq049gv1wjw0000gn/T/pip-pip-egg-info-dfq1sblv/gensim.egg-info/dependency_links.txt
writing requirements to /private/var/folders/g4/csj76blj7wn1hpq049gv1wjw0000gn/T/pip-pip-egg-info-dfq1sblv/gensim.egg-info/requires.txt
writing top-level names to /private/var/folders/g4/csj76blj7wn1hpq049gv1wjw0000gn/T/pip-pip-egg-info-dfq1sblv/gensim.egg-info/top_level.txt
writing manifest file '/private/var/folders/g4/csj76blj7wn1hpq049gv1wjw0000gn/T/pip-pip-egg-info-dfq1sblv/gensim.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/g4/csj76blj7wn1hpq049gv1wjw0000gn/T/pip-install-or7gzo1c/gensim_9c37160069b94c3ca6ebcaebc1dd9090/setup.py", line 356, in <module>
setup(
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 308, in run
self.find_sources()
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 316, in find_sources
mm.run()
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 560, in run
self.add_defaults()
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 597, in add_defaults
sdist.add_defaults(self)
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/command/sdist.py", line 106, in add_defaults
super().add_defaults()
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/_distutils/command/sdist.py", line 252, in add_defaults
self._add_defaults_ext()
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
build_ext = self.get_finalized_command('build_ext')
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 305, in get_finalized_command
cmd_obj.ensure_finalized()
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
self.finalize_options()
File "/private/var/folders/g4/csj76blj7wn1hpq049gv1wjw0000gn/T/pip-install-or7gzo1c/gensim_9c37160069b94c3ca6ebcaebc1dd9090/setup.py", line 119, in finalize_options
self.include_dirs.append(numpy.get_include())
AttributeError: module 'numpy' has no attribute 'get_include'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: python3.9 -m pip install --upgrade pip
It installed without problems with Python3.8.
me too. And when I use docker-install, I have trouble with MPI.
I just tried installing FedML with
pip3
usingpython3.10.10
from Homebrew on macOS 12.6, here is the full output:This seems to suggest that FedML is using NumPy 1.21.0 which does not support Python3.10.