# Issues installing pytorch for OS X with conda

**URL:** <https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496>\
**Category:** Uncategorized\
**Created:** [December 23, 2017, 6:36pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496 "2017-12-23T18:36:29Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brando\_Miranda](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/brando_miranda/32/14355_2.png) [@Brando\_Miranda](https://discuss.pytorch.org/u/Brando_Miranda)\
**Post date:** [December 23, 2017, 6:36pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/1 "2017-12-23T18:36:29Z")

</div>

I used to have pytorch working for python 3 on OS X but now I can’t get it to install automatically for some reason (I don’t want to do from source).

I did:

```
conda install pytorch torchvision -c pytorch

```

as the website suggested… then I got a `mkl` error so I installed it but it still complains about it:

```
(FTIR_py3) brandomiranda~/home_simulation_research/FTIR/FTIR_proj $ conda install pytorch torchvision -c pytorch
Fetching package metadata ...........
Solving package specifications:

PackageNotFoundError: Package not found: '' Dependencies missing in current osx-64 channels:
  - pytorch -> mkl >=2018
  - torchvision -> pytorch >=0.3 -> mkl >=2018

You can search for packages on anaconda.org with

    anaconda search -t conda mkl

You may need to install the anaconda-client command line client with

    conda install anaconda-client

```

but I do have mkl:

```
(FTIR_py3) brandomiranda~/home_simulation_research/FTIR/FTIR_proj $ conda install mkl
Fetching package metadata .........
Solving package specifications: .

# All requested packages already installed.
# packages in environment at /Users/brandomiranda/miniconda3/envs/FTIR_py3:
#
mkl 2017.0.3 0

```

anyone know whats going on? it used to work a few days ago…

---

<div class="post-metadata">

**Author:** ![smth](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/smth/32/13_2.png) [@smth](https://discuss.pytorch.org/u/smth)\
**Post date:** [December 23, 2017, 7:05pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/2 "2017-12-23T19:05:49Z")

</div>

pytorch 0.3 requires mkl 2018. For some reason it’s not being installed.  
Can you try:

```auto
conda install mkl=2018

```

---

<div class="post-metadata">

**Author:** ![Brando\_Miranda](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/brando_miranda/32/14355_2.png) [@Brando\_Miranda](https://discuss.pytorch.org/u/Brando_Miranda)\
**Post date:** [December 23, 2017, 7:30pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/3 "2017-12-23T19:30:23Z")

</div>

> [@smth](#):
>
> conda install mkl=2018

still doesn’t work:

```
(FTIR_py3) brandomiranda~/home_simulation_research/FTIR/FTIR_proj $ conda install mkl=2018
Fetching package metadata .........

PackageNotFoundError: Package not found: '' Package missing in current osx-64 channels:
  - mkl 2018*

You can search for packages on anaconda.org with

    anaconda search -t conda mkl

You may need to install the anaconda-client command line client with

    conda install anaconda-client

```

---

<div class="post-metadata">

**Author:** ![smth](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/smth/32/13_2.png) [@smth](https://discuss.pytorch.org/u/smth)\
**Post date:** [December 23, 2017, 7:37pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/4 "2017-12-23T19:37:50Z")

</div>

it should be there. maybe try `conda upgrade conda`.

See [https://anaconda.org/anaconda/mkl](https://anaconda.org/anaconda/mkl)

---

<div class="post-metadata">

**Author:** ![Brando\_Miranda](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/brando_miranda/32/14355_2.png) [@Brando\_Miranda](https://discuss.pytorch.org/u/Brando_Miranda)\
**Post date:** [December 23, 2017, 7:38pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/5 "2017-12-23T19:38:35Z")

</div>

> [@smth](#):
>
> conda upgrade conda

that command gave:

```
(FTIR_py3) brandomiranda~/home_simulation_research/FTIR/FTIR_proj $ conda upgrade conda

PackageNotFoundError: Package not found: 'conda' Package 'conda' is not installed in /Users/brandomiranda/miniconda3/envs/FTIR_py3

```

---

<div class="post-metadata">

**Author:** ![smth](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/smth/32/13_2.png) [@smth](https://discuss.pytorch.org/u/smth)\
**Post date:** [December 23, 2017, 7:39pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/6 "2017-12-23T19:39:56Z")

</div>

i guess it’s

```auto
conda update conda

```

---

<div class="post-metadata">

**Author:** ![Brando\_Miranda](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/brando_miranda/32/14355_2.png) [@Brando\_Miranda](https://discuss.pytorch.org/u/Brando_Miranda)\
**Post date:** [December 23, 2017, 7:40pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/7 "2017-12-23T19:40:24Z")

</div>

> [@smth](#):
>
> conda update conda

I know this is super annoying but it didn’t work XD this is funny:

```
(FTIR_py3) brandomiranda~/home_simulation_research/FTIR/FTIR_proj $ conda update conda

PackageNotFoundError: Package not found: 'conda' Package 'conda' is not installed in /Users/brandomiranda/miniconda3/envs/FTIR_py3

```

---

<div class="post-metadata">

**Author:** ![smth](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/smth/32/13_2.png) [@smth](https://discuss.pytorch.org/u/smth)\
**Post date:** [December 23, 2017, 7:41pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/8 "2017-12-23T19:41:36Z")

</div>

well i dont know then, your anaconda installation is weird. these commands should work.

---

<div class="post-metadata">

**Author:** ![Brando\_Miranda](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/brando_miranda/32/14355_2.png) [@Brando\_Miranda](https://discuss.pytorch.org/u/Brando_Miranda)\
**Post date:** [December 23, 2017, 7:43pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/9 "2017-12-23T19:43:55Z")

</div>

> <https://stackoverflow.com/questions/47955463/issues-installing-pytorch-for-os-x-with-conda>

---

<div class="post-metadata">

**Author:** ![malcolmgreaves](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/malcolmgreaves/32/3007_2.png) [@malcolmgreaves](https://discuss.pytorch.org/u/malcolmgreaves)\
**Post date:** [January 10, 2018, 6:49am UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/10 "2018-01-10T06:49:43Z")

</div>

Brandon – if you do `conda update conda` _inside_ of an existing environment, it will fail. Deactivate the environment then re-run the command.

---

<div class="post-metadata">

**Author:** ![ezyang](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ezyang/32/486_2.png) [@ezyang](https://discuss.pytorch.org/u/ezyang)\
**Post date:** [January 23, 2018, 5:10pm UTC](https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496/11 "2018-01-23T17:10:44Z")

</div>

@Soumith_Chintala I reproduced this issue on one of our devservers, so there might be something legitimately broken here.

UPDATE: Upgrading conda fixed the problem, weirdly enough.
