LoginSignup
6

More than 5 years have passed since last update.

conda install pytorch torchvision -c pytorch で PackageNotFoundError: Dependencies missing in current osx-64 channels: - pytorch -> mkl >=2018 と言われる

Posted at

pytorch のインストールでエラーがでました😉

環境

OSX

pytorch をインストール

インストールコマンドはコチラから取得しました。

conda install pytorch torchvision -c pytorch 

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

PackageNotFoundErrorがでました。mklがないとかなんとか😳

conda update

update しました。

conda update conda 

色々インストールされました。

pytorch を再度インストール

conda install pytorch torchvision -c pytorch 

今度はうまくいきました。

pytorchが使えているか

チュートリアルから試しました。

>>> import numpy as np
>>> import torch
>>> 
>>> np_tensor = np.zeros([1,2,3])
>>> np_tensor
array([[[ 0.,  0.,  0.],
        [ 0.,  0.,  0.]]])
>>> np_tensor.shape
(1, 2, 3)
>>> torch.zeros(1,2,3)

(0 ,.,.) = 
  0  0  0
  0  0  0
[torch.FloatTensor of size 1x2x3]

などなど動くみたいです(☝ ՞ਊ ՞)

参考

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6