# VTK installation in Anaconda python distribution

**URL:** https://discourse.vtk.org/t/vtk-installation-in-anaconda-python-distribution/5990
**Category:** Support
**Created:** [June 14, 2021, 1:44pm UTC](https://discourse.vtk.org/t/vtk-installation-in-anaconda-python-distribution/5990 "2021-06-14T13:44:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DavidMiraut](https://discourse.vtk.org/user_avatar/discourse.vtk.org/davidmiraut/32/3329_2.png) [@DavidMiraut](https://discourse.vtk.org/u/DavidMiraut)
#### Post date: [June 14, 2021, 1:44pm UTC](https://discourse.vtk.org/t/vtk-installation-in-anaconda-python-distribution/5990/1 "2021-06-14T13:44:17Z")

</div>

I have some problems when I try to install VTK python package in latest anaconda distribution (2021.5 python 3.8).

If I execute:

> conda install -c conda-forge vtk

I only get error messages like:

> Collecting package metadata (current\_repodata.json): done  
> Solving environment: failed with initial frozen solve. Retrying with flexible solve.  
> Solving environment: failed with repodata from current\_repodata.json, will retry with next repodata source.

Anaconda tries to install several times, but finally it does not work.

I have tried to install vtk python package both in a dedicated environment and in the base environment with same results. I also have uninstalled Anaconda python distribution and I tried to install vtk python package in a complete new Anaconda installation. I got the same errors in all the cases.

This is the first time I try to use VTK in python (I have been working with vtk library in C++ until now). I expected it to be easy to install, so I’m pretty surprised.  
Please, could you tell me what I’m doing wrong?

Thanks !

PS. I can install other python libraries with a similar command (like OpenCV, or even pyTorch) without any problem.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [June 14, 2021, 1:52pm UTC](https://discourse.vtk.org/t/vtk-installation-in-anaconda-python-distribution/5990/2 "2021-06-14T13:52:59Z")

</div>

Hmm. I’m not sure who maintains the Conda packaging stuff. @danlipsa or @amaclean, do you know?

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [June 14, 2021, 2:09pm UTC](https://discourse.vtk.org/t/vtk-installation-in-anaconda-python-distribution/5990/3 "2021-06-14T14:09:03Z")

</div>

I see in the list some CDAT contributors. Probably the best would be file a bug report for the recipe.  
[https://github.com/conda-forge/vtk-feedstock](https://github.com/conda-forge/vtk-feedstock)

---

<div class="post-metadata">

### Author: ![dave3d](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dave3d/32/1157_2.png) [@dave3d](https://discourse.vtk.org/u/dave3d)
#### Post date: [June 14, 2021, 2:38pm UTC](https://discourse.vtk.org/t/vtk-installation-in-anaconda-python-distribution/5990/4 "2021-06-14T14:38:07Z")

</div>

Yeah, I stopped using the conda install because it wasn’t working and use pip instead.

---

<div class="post-metadata">

### Author: ![DavidMiraut](https://discourse.vtk.org/user_avatar/discourse.vtk.org/davidmiraut/32/3329_2.png) [@DavidMiraut](https://discourse.vtk.org/u/DavidMiraut)
#### Post date: [June 14, 2021, 2:43pm UTC](https://discourse.vtk.org/t/vtk-installation-in-anaconda-python-distribution/5990/5 "2021-06-14T14:43:55Z")

</div>

It works perfectly with pip.  
Thank you, Dave !
