cd ~/torch; bash install-deps;
pix2pixをPytorchでやっちゃおうと思ってる人は、このコマンド打つと思うんだけど、あたしはこんなエラー出たのよ。
Hit:1 http://jp.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Hit:3 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:6 http://archive.canonical.com/ubuntu focal InRelease
.
.
.
.
.
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Note, selecting 'libncurses-dev' instead of 'ncurses-dev'
Package libqt4-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package ipython is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libqt4-dev' has no installation candidate
E: Package 'ipython' has no installation candidate
まぁ瞬殺だわよ。
これして頂戴。ただし、Ubuntu20.04の人に限るわ。他のバージョンの人はこのサイト参照して頂戴ね。
https://ubuntuhandbook.org/index.php/2020/07/install-qt4-ubuntu-20-04/
sudo add-apt-repository ppa:rock-core/qt4
次に /etc/apt/sources.list の最後にこの3行を加えちゃいましょう。
'''
deb http://archive.ubuntu.com/ubuntu bionic main universe deb
http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
'''
書くときはお好きなエディタでいいわよ♡
あたしはViが好きだからViでやったわ。
さて、もう終わりよ。やっておしまいなさい!
cd ~/torch; bash install-deps;
終わり。