facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

Installation error Windows7 #1582

Closed Cawnduit closed 1 year ago

Cawnduit commented 1 year ago

Environment

conda 23.3.1 python 3.10.11 pytorch 2.0.1 torchvision 0.15.2

Instructions To Reproduce the Issue:

  1. Create test environment via conda create -n pytorch3d python=3.10
  2. Activate new environment via conda activate pytorch3d
  3. Install prerequisites via conda install pytorch torchvision torchaudio cpuonly -c pytorch (obtained from https://pytorch.org/features/)
  4. Attempt install with pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"

Logs:

(pytorch3d) C:\Users\test>pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"
Collecting git+https://github.com/facebookresearch/pytorch3d.git@stable
  Cloning https://github.com/facebookresearch/pytorch3d.git (to revision stable) to c:\users\test\appdata\local\temp\pip-req-build-j6jnhyd4
  Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/pytorch3d.git 'C:\Users\test\AppData\Local\Temp\pip-req-build-j6jnhyd4'
  Running command git checkout -q 297020a4b1d7492190cb4a909cafbd2c81a12cb5
  Resolved https://github.com/facebookresearch/pytorch3d.git to commit 297020a4b1d7492190cb4a909cafbd2c81a12cb5
  Preparing metadata (setup.py) ... done
Collecting fvcore (from pytorch3d==0.7.4)
  Using cached fvcore-0.1.5.post20221221-py3-none-any.whl
Collecting iopath (from pytorch3d==0.7.4)
  Using cached iopath-0.1.10-py3-none-any.whl
Requirement already satisfied: numpy in c:\users\test\appdata\local\miniconda3\envs\pytorch3d\lib\site-packages (from fvcore->pytorch3d==0.7.4) (1.25.0)
Collecting yacs>=0.1.6 (from fvcore->pytorch3d==0.7.4)
  Using cached yacs-0.1.8-py3-none-any.whl (14 kB)
Collecting pyyaml>=5.1 (from fvcore->pytorch3d==0.7.4)
  Using cached PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB)
Collecting tqdm (from fvcore->pytorch3d==0.7.4)
  Using cached tqdm-4.65.0-py3-none-any.whl (77 kB)
Collecting termcolor>=1.1 (from fvcore->pytorch3d==0.7.4)
  Using cached termcolor-2.3.0-py3-none-any.whl (6.9 kB)
Requirement already satisfied: Pillow in c:\users\test\appdata\local\miniconda3\envs\pytorch3d\lib\site-packages (from fvcore->pytorch3d==0.7.4) (9.4.0)
Collecting tabulate (from fvcore->pytorch3d==0.7.4)
  Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Requirement already satisfied: typing-extensions in c:\users\test\appdata\local\miniconda3\envs\pytorch3d\lib\site-packages (from iopath->pytorch3d==0.7.4) (4.6.3)
Collecting portalocker (from iopath->pytorch3d==0.7.4)
  Using cached portalocker-2.7.0-py2.py3-none-any.whl (15 kB)
Collecting pywin32>=226 (from portalocker->iopath->pytorch3d==0.7.4)
  Using cached pywin32-306-cp310-cp310-win_amd64.whl (9.2 MB)
Collecting colorama (from tqdm->fvcore->pytorch3d==0.7.4)
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Building wheels for collected packages: pytorch3d
  Building wheel for pytorch3d (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [247 lines of output]
      running bdist_wheel
      C:\Users\test\AppData\Local\miniconda3\envs\pytorch3d\lib\site-packages\torch\utils\cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
        warnings.warn(msg.format('we could not find ninja.'))
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\projects
      copying projects\__init__.py -> build\lib.win-amd64-cpython-310\projects
      creating build\lib.win-amd64-cpython-310\pytorch3d
      copying pytorch3d\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d
      creating build\lib.win-amd64-cpython-310\pytorch3d\common
      copying pytorch3d\common\compat.py -> build\lib.win-amd64-cpython-310\pytorch3d\common
      copying pytorch3d\common\datatypes.py -> build\lib.win-amd64-cpython-310\pytorch3d\common
      copying pytorch3d\common\linear_with_repeat.py -> build\lib.win-amd64-cpython-310\pytorch3d\common
      copying pytorch3d\common\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\common
      creating build\lib.win-amd64-cpython-310\pytorch3d\datasets
      copying pytorch3d\datasets\shapenet_base.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets
      copying pytorch3d\datasets\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets
      copying pytorch3d\datasets\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron
      copying pytorch3d\implicitron\eval_demo.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron
      copying pytorch3d\implicitron\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron
      creating build\lib.win-amd64-cpython-310\pytorch3d\io
      copying pytorch3d\io\experimental_gltf_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io
      copying pytorch3d\io\mtl_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io
      copying pytorch3d\io\obj_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io
      copying pytorch3d\io\off_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io
      copying pytorch3d\io\pluggable.py -> build\lib.win-amd64-cpython-310\pytorch3d\io
      copying pytorch3d\io\pluggable_formats.py -> build\lib.win-amd64-cpython-310\pytorch3d\io
      copying pytorch3d\io\ply_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\io
      copying pytorch3d\io\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\io
      copying pytorch3d\io\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\io
      creating build\lib.win-amd64-cpython-310\pytorch3d\loss
      copying pytorch3d\loss\chamfer.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss
      copying pytorch3d\loss\mesh_edge_loss.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss
      copying pytorch3d\loss\mesh_laplacian_smoothing.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss
      copying pytorch3d\loss\mesh_normal_consistency.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss
      copying pytorch3d\loss\point_mesh_distance.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss
      copying pytorch3d\loss\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\loss
      creating build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\ball_query.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\cameras_alignment.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\cubify.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\graph_conv.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\interp_face_attrs.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\iou_box3d.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\knn.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\laplacian_matrices.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\marching_cubes.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\marching_cubes_data.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\mesh_face_areas_normals.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\mesh_filtering.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\packed_to_padded.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\perspective_n_points.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\points_alignment.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\points_normals.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\points_to_volumes.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\sample_farthest_points.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\sample_points_from_meshes.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\subdivide_meshes.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\vert_align.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      copying pytorch3d\ops\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\ops
      creating build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\blending.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\cameras.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\camera_conversions.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\camera_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\compositing.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\fisheyecameras.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\lighting.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\materials.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\splatter_blend.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      copying pytorch3d\renderer\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer
      creating build\lib.win-amd64-cpython-310\pytorch3d\structures
      copying pytorch3d\structures\meshes.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures
      copying pytorch3d\structures\pointclouds.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures
      copying pytorch3d\structures\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures
      copying pytorch3d\structures\volumes.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures
      copying pytorch3d\structures\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\structures
      creating build\lib.win-amd64-cpython-310\pytorch3d\transforms
      copying pytorch3d\transforms\math.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms
      copying pytorch3d\transforms\rotation_conversions.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms
      copying pytorch3d\transforms\se3.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms
      copying pytorch3d\transforms\so3.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms
      copying pytorch3d\transforms\transform3d.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms
      copying pytorch3d\transforms\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\transforms
      creating build\lib.win-amd64-cpython-310\pytorch3d\utils
      copying pytorch3d\utils\camera_conversions.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils
      copying pytorch3d\utils\checkerboard.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils
      copying pytorch3d\utils\ico_sphere.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils
      copying pytorch3d\utils\torus.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils
      copying pytorch3d\utils\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\utils
      creating build\lib.win-amd64-cpython-310\pytorch3d\vis
      copying pytorch3d\vis\plotly_vis.py -> build\lib.win-amd64-cpython-310\pytorch3d\vis
      copying pytorch3d\vis\texture_vis.py -> build\lib.win-amd64-cpython-310\pytorch3d\vis
      copying pytorch3d\vis\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\vis
      creating build\lib.win-amd64-cpython-310\pytorch3d\common\workaround
      copying pytorch3d\common\workaround\symeig3x3.py -> build\lib.win-amd64-cpython-310\pytorch3d\common\workaround
      copying pytorch3d\common\workaround\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\common\workaround
      copying pytorch3d\common\workaround\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\common\workaround
      creating build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2
      copying pytorch3d\datasets\r2n2\r2n2.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2
      copying pytorch3d\datasets\r2n2\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2
      copying pytorch3d\datasets\r2n2\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2
      creating build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet
      copying pytorch3d\datasets\shapenet\shapenet_core.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet
      copying pytorch3d\datasets\shapenet\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\blender_dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\dataset_base.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\data_loader_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\data_source.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\frame_data.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\json_index_dataset.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\json_index_dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\json_index_dataset_map_provider_v2.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\llff_dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\load_blender.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\load_llff.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\orm_types.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\rendered_mesh_dataset_map_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\scene_batch_sampler.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\single_sequence_dataset.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\sql_dataset.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\sql_dataset_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\train_eval_data_loader_provider.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\types.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\visualize.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      copying pytorch3d\implicitron\dataset\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\dataset
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\evaluation
      copying pytorch3d\implicitron\evaluation\evaluate_new_view_synthesis.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\evaluation
      copying pytorch3d\implicitron\evaluation\evaluator.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\evaluation
      copying pytorch3d\implicitron\evaluation\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\evaluation
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models
      copying pytorch3d\implicitron\models\base_model.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models
      copying pytorch3d\implicitron\models\generic_model.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models
      copying pytorch3d\implicitron\models\metrics.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models
      copying pytorch3d\implicitron\models\model_dbir.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models
      copying pytorch3d\implicitron\models\overfit_model.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models
      copying pytorch3d\implicitron\models\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models
      copying pytorch3d\implicitron\models\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\third_party
      copying pytorch3d\implicitron\third_party\hyperlayers.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\third_party
      copying pytorch3d\implicitron\third_party\pytorch_prototyping.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\third_party
      copying pytorch3d\implicitron\third_party\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\third_party
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\camera_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\circle_fitting.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\config.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\depth_cleanup.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\eval_video_trajectory.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\image_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\metric_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\model_io.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\point_cloud_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\rasterize_mc.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\stats.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\video_writer.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\vis_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      copying pytorch3d\implicitron\tools\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\tools
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\feature_extractor
      copying pytorch3d\implicitron\models\feature_extractor\feature_extractor.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\feature_extractor
      copying pytorch3d\implicitron\models\feature_extractor\resnet_feature_extractor.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\feature_extractor
      copying pytorch3d\implicitron\models\feature_extractor\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\feature_extractor
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\global_encoder
      copying pytorch3d\implicitron\models\global_encoder\autodecoder.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\global_encoder
      copying pytorch3d\implicitron\models\global_encoder\global_encoder.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\global_encoder
      copying pytorch3d\implicitron\models\global_encoder\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\global_encoder
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      copying pytorch3d\implicitron\models\implicit_function\base.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      copying pytorch3d\implicitron\models\implicit_function\decoding_functions.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      copying pytorch3d\implicitron\models\implicit_function\idr_feature_field.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      copying pytorch3d\implicitron\models\implicit_function\neural_radiance_field.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      copying pytorch3d\implicitron\models\implicit_function\scene_representation_networks.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      copying pytorch3d\implicitron\models\implicit_function\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      copying pytorch3d\implicitron\models\implicit_function\voxel_grid.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      copying pytorch3d\implicitron\models\implicit_function\voxel_grid_implicit_function.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      copying pytorch3d\implicitron\models\implicit_function\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\implicit_function
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\base.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\lstm_renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\multipass_ea.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\raymarcher.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\ray_point_refiner.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\ray_sampler.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\ray_tracing.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\rgb_net.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\sdf_renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      copying pytorch3d\implicitron\models\renderer\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\renderer
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler
      copying pytorch3d\implicitron\models\view_pooler\feature_aggregator.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler
      copying pytorch3d\implicitron\models\view_pooler\view_pooler.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler
      copying pytorch3d\implicitron\models\view_pooler\view_sampler.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler
      copying pytorch3d\implicitron\models\view_pooler\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\view_pooler
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\visualization
      copying pytorch3d\implicitron\models\visualization\render_flyaround.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\visualization
      copying pytorch3d\implicitron\models\visualization\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron\models\visualization
      creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit
      copying pytorch3d\renderer\implicit\harmonic_embedding.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit
      copying pytorch3d\renderer\implicit\raymarching.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit
      copying pytorch3d\renderer\implicit\raysampling.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit
      copying pytorch3d\renderer\implicit\renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit
      copying pytorch3d\renderer\implicit\sample_pdf.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit
      copying pytorch3d\renderer\implicit\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit
      copying pytorch3d\renderer\implicit\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\implicit
      creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      copying pytorch3d\renderer\mesh\clip.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      copying pytorch3d\renderer\mesh\rasterizer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      copying pytorch3d\renderer\mesh\rasterize_meshes.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      copying pytorch3d\renderer\mesh\renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      copying pytorch3d\renderer\mesh\shader.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      copying pytorch3d\renderer\mesh\shading.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      copying pytorch3d\renderer\mesh\textures.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      copying pytorch3d\renderer\mesh\utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      copying pytorch3d\renderer\mesh\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\mesh
      creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\opengl
      copying pytorch3d\renderer\opengl\opengl_utils.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\opengl
      copying pytorch3d\renderer\opengl\rasterizer_opengl.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\opengl
      copying pytorch3d\renderer\opengl\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\opengl
      creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\points
      copying pytorch3d\renderer\points\compositor.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points
      copying pytorch3d\renderer\points\rasterizer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points
      copying pytorch3d\renderer\points\rasterize_points.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points
      copying pytorch3d\renderer\points\renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points
      copying pytorch3d\renderer\points\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points
      creating build\lib.win-amd64-cpython-310\pytorch3d\renderer\points\pulsar
      copying pytorch3d\renderer\points\pulsar\renderer.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points\pulsar
      copying pytorch3d\renderer\points\pulsar\unified.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points\pulsar
      copying pytorch3d\renderer\points\pulsar\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\renderer\points\pulsar
      creating build\lib.win-amd64-cpython-310\pytorch3d\implicitron_trainer
      copying projects\implicitron_trainer\experiment.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron_trainer
      copying projects\implicitron_trainer\visualize_reconstruction.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron_trainer
      copying projects\implicitron_trainer\__init__.py -> build\lib.win-amd64-cpython-310\pytorch3d\implicitron_trainer
      copying pytorch3d\datasets\r2n2\r2n2_synset_dict.json -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\r2n2
      copying pytorch3d\datasets\shapenet\shapenet_synset_dict_v1.json -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet
      copying pytorch3d\datasets\shapenet\shapenet_synset_dict_v2.json -> build\lib.win-amd64-cpython-310\pytorch3d\datasets\shapenet
      running build_ext
      C:\Users\test\AppData\Local\miniconda3\envs\pytorch3d\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified
        warnings.warn(f'Error checking compiler version for {compiler}: {error}')
      building 'pytorch3d._C' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pytorch3d
  Running setup.py clean for pytorch3d
Failed to build pytorch3d
ERROR: Could not build wheels for pytorch3d, which is required to install pyproject.toml-based projects

Unexpected behavior

Unable to install pytorch3D in conda despite Microsoft Visual C++ being the (supposedly) correct version. See image below from Control Panel. image

bottler commented 1 year ago

You need more than the redistributable. You need more components of visual studio, like windows APIs / development kit and the C++ building tools/toolchain.

Cawnduit commented 1 year ago

After installing Visual Studio 2022 (community version) and the Visual Studio Build Tools 2022, I am able to install successfully. Thanks!