Post

Replies

Boosts

Views

Activity

Comment on Can't install tensorflow-macos (M1)
This doesn't work for me. Created fresh conda environment, then conda install -c apple tensorflow-deps==2.5.0, then when python -m pip install tensorflow-macosgot the same error (this is just the final part of the errors): Traceback (most recent call last): File "/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-25u3hpzs/grpcio_14e511c33ab9483dbc8eb10bd70d4a4b/src/python/grpcio/commands.py", line 285, in build_extensions build_ext.build_ext.build_extensions(self) File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 203, in build_extension if ext._needs_stub: AttributeError: 'Extension' object has no attribute '_needs_stub' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-25u3hpzs/grpcio_14e511c33ab9483dbc8eb10bd70d4a4b/setup.py", line 525, in <module> setuptools.setup( File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/command/install.py", line 546, in run self.run_command('build') File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-25u3hpzs/grpcio_14e511c33ab9483dbc8eb10bd70d4a4b/src/python/grpcio/commands.py", line 288, in build_extensions support.diagnose_build_ext_error(self, error, formatted_exception) File "/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-25u3hpzs/grpcio_14e511c33ab9483dbc8eb10bd70d4a4b/src/python/grpcio/support.py", line 117, in diagnose_build_ext_error diagnostic(build_ext, error) File "/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-25u3hpzs/grpcio_14e511c33ab9483dbc8eb10bd70d4a4b/src/python/grpcio/support.py", line 96, in diagnose_attribute_error raise commands.CommandError( commands.CommandError: We expect a missing `_needs_stub` attribute from older versions of setuptools. Consider upgrading setuptools. ---------------------------------------- Rolling back uninstall of grpcio Moving to /Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/site-packages/grpc/ from /Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/site-packages/~rpc Moving to /Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/site-packages/grpcio-1.34.1.dist-info/ from /Users/machine/miniforge3/envs/tfdeps250/lib/python3.9/site-packages/~rpcio-1.34.1.dist-info ERROR: Command errored out with exit status 1: /Users/machine/miniforge3/envs/tfdeps250/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-25u3hpzs/grpcio_14e511c33ab9483dbc8eb10bd70d4a4b/setup.py'"'"'; file='"'"'/private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-install-25u3hpzs/grpcio_14e511c33ab9483dbc8eb10bd70d4a4b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/0k/hz9yngm56nz1htdc3c3t3d0c0000gn/T/pip-record-57rsb0gc/install-record.txt --single-version-externally-managed --compile --install-headers /Users/machine/miniforge3/envs/tfdeps250/include/python3.9/grpcio Check the logs for full command output.
Sep ’21