pacman -S cuda cudnn # 安装 pytorch pacman -S python-pytorch-cuda # 安装 tensorflow pacman -S python-tensorflow-cuda
当使用import tensorflow as tf
时,以下报错python
RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
# 更新requests.--user参数目的在于安装到家目录,防止污染公共环境 pip install --user --upgrade requests
~/.jupyter/jupyter_notebook_config.py
# c.NotebookApp.browser = ''
c.NotebookApp.browser = '/usr/bin/web_browser' %s
,其中web_browser
为浏览器可执行程序名称,通常在/usr/bin/
目录下。yay -S python36
安装tensorflowy匹配的python,manjaro 提供的python太新若是没有附带pip
,使用以下方式安装:git
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3.6 get-pip.py
sudo python3.6 -m pip install tensorflow-gpu
yay -S cuda-10.1