conda 安装与卸载cudnn

鉴于我安装卸载了这么多次,根本上是anaconda是个傻逼

issue在此:https://github.com/tensorflow/tensorflow/issues/34214

$ conda search cudnn
Loading channels: done
# Name                       Version           Build  Channel             
cudnn                          7.0.5       cuda8.0_0  pkgs/main           
cudnn                          7.1.2       cuda9.0_0  pkgs/main           
cudnn                          7.1.3       cuda8.0_0  pkgs/main           
cudnn                          7.2.1       cuda9.2_0  pkgs/main           
cudnn                          7.3.1      cuda10.0_0  pkgs/main           
cudnn                          7.3.1       cuda9.0_0  pkgs/main           
cudnn                          7.3.1       cuda9.2_0  pkgs/main           
cudnn                          7.6.0      cuda10.0_0  pkgs/main           
cudnn                          7.6.0      cuda10.1_0  pkgs/main           
cudnn                          7.6.0       cuda9.0_0  pkgs/main           
cudnn                          7.6.0       cuda9.2_0  pkgs/main           
cudnn                          7.6.4      cuda10.0_0  pkgs/main           
cudnn                          7.6.4      cuda10.1_0  pkgs/main           
cudnn                          7.6.4       cuda9.0_0  pkgs/main           
cudnn                          7.6.4       cuda9.2_0  pkgs/main    

如果直接安装cudnn7.6.4,它直接给我安装cuda是10.1的,而我的cuda driver是410.129的,按照我这个博文,根本不匹配。

conda install cudnn==7.6.4
Collecting package metadata (repodata.json): done
Solving environment: done

# All requested packages already installed.

卸载cudnn,重新再次安装:

$ conda uninstall cudnn
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /data/prod/anaconda3

  removed specs:
    - cudnn


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    cffi-1.13.2                |   py37h2e261b9_0         225 KB
    dask-2.8.0                 |             py_1          12 KB
    dask-core-2.8.0            |             py_0         584 KB
    distributed-2.8.0          |             py_1         400 KB
    fsspec-0.6.0               |             py_0          50 KB
    notebook-6.0.2             |           py37_0         6.3 MB
    psutil-5.6.5               |   py37h7b6447c_0         328 KB
    pyparsing-2.4.4            |             py_0          62 KB
    six-1.13.0                 |           py37_0          27 KB
    ------------------------------------------------------------
                                           Total:         7.9 MB

The following packages will be REMOVED:

  _tflow_select-2.1.0-gpu
  absl-py-0.8.1-py37_0
  astor-0.8.0-py37_0
  c-ares-1.15.0-h7b6447c_1001
  cudatoolkit-10.1.243-h6bb024c_0
  cudnn-7.6.4-cuda10.1_0
  cupti-10.1.168-0
  gast-0.3.2-py_0
  google-pasta-0.1.7-py_0
  grpcio-1.16.1-py37hf8bcb03_1
  keras-applications-1.0.8-py_0
  keras-preprocessing-1.1.0-py_1
  libprotobuf-3.9.2-hd408876_0
  markdown-3.1.1-py37_0
  protobuf-3.9.2-py37he6710b0_0
  tensorboard-1.14.0-py37hf484d3e_0
  tensorflow-1.14.0-gpu_py37h74c33d7_0
  tensorflow-base-1.14.0-gpu_py37he45bfe2_0
  tensorflow-estimator-1.14.0-py_0
  tensorflow-gpu-1.14.0-h0d30ee6_0
  termcolor-1.1.0-py37_1

The following packages will be UPDATED:

  cffi                                1.13.1-py37h2e261b9_0 --> 1.13.2-py37h2e261b9_0
  dask                                           2.6.0-py_0 --> 2.8.0-py_1
  dask-core                                      2.6.0-py_0 --> 2.8.0-py_0
  distributed                                    2.6.0-py_0 --> 2.8.0-py_1
  fsspec                                         0.5.2-py_0 --> 0.6.0-py_0
  notebook                                     6.0.1-py37_0 --> 6.0.2-py37_0
  psutil                               5.6.3-py37h7b6447c_0 --> 5.6.5-py37h7b6447c_0
  pyparsing                                      2.4.2-py_0 --> 2.4.4-py_0
  six                                         1.12.0-py37_0 --> 1.13.0-py37_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
psutil-5.6.5         | 328 KB    | ####################################################################### | 100% 
six-1.13.0           | 27 KB     | ####################################################################### | 100% 
cffi-1.13.2          | 225 KB    | ####################################################################### | 100% 
fsspec-0.6.0         | 50 KB     | ####################################################################### | 100% 
dask-core-2.8.0      | 584 KB    | ####################################################################### | 100% 
pyparsing-2.4.4      | 62 KB     | ####################################################################### | 100% 
notebook-6.0.2       | 6.3 MB    | ####################################################################### | 100% 
distributed-2.8.0    | 400 KB    | ####################################################################### | 100% 
dask-2.8.0           | 12 KB     | ####################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

安装cudnn还是给我安装cuda10.1,我特么能说啥????

conda install cudnn==7.6.4
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /./anaconda3

  added / updated specs:
    - cudnn==7.6.4


The following NEW packages will be INSTALLED:

  cudatoolkit        pkgs/main/linux-64::cudatoolkit-10.1.243-h6bb024c_0
  cudnn              pkgs/main/linux-64::cudnn-7.6.4-cuda10.1_0

然而我y 后发现根本就没给我安装。。。。。。。。。anaconda这个操作也是6到家了

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

$ pip list
Package                            Version            
---------------------------------- -------------------
absl-py                            0.8.1              
alabaster                          0.7.12             
anaconda-client                    1.7.2              
anaconda-navigator                 1.9.7              
anaconda-project                   0.8.3              
asn1crypto                         1.2.0              
astor                              0.8.0              
astroid                            2.3.2              
astropy                            3.2.3              
atomicwrites                       1.3.0              
attrs                              19.3.0             
audioread                          2.1.8              
Babel                              2.7.0              
backcall                           0.1.0              
backports.os                       0.1.1              
backports.shutil-get-terminal-size 1.0.0              
beautifulsoup4                     4.8.1              
bitarray                           1.0.1              
bkcharts                           0.2                
bleach                             3.1.0              
bokeh                              1.4.0              
boto                               2.49.0             
Bottleneck                         1.2.1              
cachetools                         3.1.1              
certifi                            2019.9.11          
cffi                               1.13.2             
chardet                            3.0.4              
Click                              7.0                
cloudpickle                        1.2.2              
clyent                             1.2.2              
colorama                           0.4.1              
conda                              4.7.12             
conda-build                        3.17.8             
conda-package-handling             1.6.0              
conda-verify                       3.1.1              
contextlib2                        0.6.0              
cryptography                       2.8                
cycler                             0.10.0             
Cython                             0.29.13            
cytoolz                            0.10.0             
dask                               2.8.0              
decorator                          4.4.1              
defusedxml                         0.6.0              
distributed                        2.8.0              
docutils                           0.15.2             
entrypoints                        0.3                
et-xmlfile                         1.0.1              
falcon                             2.0.0              
fastcache                          1.1.0              
filelock                           3.0.12             
Flask                              1.1.1              
fsspec                             0.6.0              
future                             0.18.2             
gast                               0.2.2              
gevent                             1.4.0              
glob2                              0.7                
gmpy2                              2.0.8              
google-auth                        1.7.0              
google-auth-oauthlib               0.4.1              
google-pasta                       0.1.8              
greenlet                           0.4.15             
grpcio                             1.25.0             
h5py                               2.9.0              
HeapDict                           1.0.1              
html5lib                           1.0.1              
idna                               2.8                
imageio                            2.6.1              
imagesize                          1.1.0              
importlib-metadata                 0.23               
inflect                            3.0.2              
ipykernel                          5.1.3              
ipython                            7.9.0              
ipython-genutils                   0.2.0              
ipywidgets                         7.5.1              
isort                              4.3.21             
itsdangerous                       1.1.0              
jdcal                              1.4.1              
jedi                               0.15.1             
jeepney                            0.4.1              
Jinja2                             2.10.3             
joblib                             0.14.0             
json5                              0.8.5              
jsonschema                         3.1.1              
jupyter                            1.0.0              
jupyter-client                     5.3.4              
jupyter-console                    6.0.0              
jupyter-core                       4.6.1              
jupyterlab                         1.1.4              
jupyterlab-server                  1.0.6              
Keras                              2.3.1              
keyring                            18.0.0             
kiwisolver                         1.1.0              
lazy-object-proxy                  1.4.3              
libarchive-c                       2.8                
librosa                            0.6.0              
lief                               0.9.0              
llvmlite                           0.30.0             
locket                             0.2.0              
lxml                               4.4.1              
MarkupSafe                         1.1.1              
matplotlib                         3.1.1              
mccabe                             0.6.1              
mistune                            0.8.4              
mkl-fft                            1.0.15             
mkl-random                         1.1.0              
mkl-service                        2.3.0              
mock                               3.0.5              
more-itertools                     7.2.0              
mpmath                             1.1.0              
msgpack                            0.6.1              
multipledispatch                   0.6.0              
navigator-updater                  0.2.1              
nbconvert                          5.6.1              
nbformat                           4.4.0              
networkx                           2.4                
nltk                               3.4.5              
nose                               1.3.7              
notebook                           6.0.2              
numba                              0.46.0             
numexpr                            2.7.0              
numpy                              1.17.3             
numpydoc                           0.9.1              
oauthlib                           3.1.0              
olefile                            0.46               
opencv-python                      4.1.1.26           
openpyxl                           3.0.0              
opt-einsum                         3.1.0              
packaging                          19.2               
pandas                             0.25.2             
pandocfilters                      1.4.2              
parso                              0.5.1              
partd                              1.0.0              
path.py                            12.0.1             
pathlib2                           2.3.5              
patsy                              0.5.1              
pep8                               1.7.1              
pexpect                            4.7.0              
pickleshare                        0.7.5              
Pillow                             6.2.1              
pip                                19.3.1             
pkginfo                            1.5.0.1            
pluggy                             0.13.0             
ply                                3.11               
prometheus-client                  0.7.1              
prompt-toolkit                     2.0.10             
protobuf                           3.10.0             
psutil                             5.6.5              
ptyprocess                         0.6.0              
py                                 1.8.0              
pyasn1                             0.4.7              
pyasn1-modules                     0.2.7              
pycodestyle                        2.5.0              
pycosat                            0.6.3              
pycparser                          2.19               
pycrypto                           2.6.1              
pycurl                             7.43.0.3           
pyflakes                           2.1.1              
Pygments                           2.4.2              
pylint                             2.4.3              
pyodbc                             4.0.27             
pyOpenSSL                          19.0.0             
pyparsing                          2.4.4              
pyrsistent                         0.15.4             
PySocks                            1.7.1              
pytest                             5.2.2              
pytest-arraydiff                   0.3                
pytest-astropy                     0.5.0              
pytest-doctestplus                 0.4.0              
pytest-openfiles                   0.4.0              
pytest-remotedata                  0.3.2              
python-dateutil                    2.8.1              
pytz                               2019.3             
PyWavelets                         1.1.1              
PyYAML                             5.1.2              
pyzmq                              18.1.0             
QtAwesome                          0.6.0              
qtconsole                          4.5.5              
QtPy                               1.9.0              
requests                           2.22.0             
requests-oauthlib                  1.3.0              
resampy                            0.2.2              
rope                               0.14.0             
rsa                                4.0                
ruamel-yaml                        0.15.46            
scikit-image                       0.15.0             
scikit-learn                       0.21.3             
scipy                              1.3.1              
seaborn                            0.9.0              
SecretStorage                      3.1.1              
Send2Trash                         1.5.0              
setuptools                         41.6.0.post20191030
simplegeneric                      0.8.1              
singledispatch                     3.4.0.3            
six                                1.13.0             
snowballstemmer                    2.0.0              
sortedcollections                  1.1.2              
sortedcontainers                   2.1.0              
soupsieve                          1.9.3              
Sphinx                             2.2.1              
sphinxcontrib-applehelp            1.0.1              
sphinxcontrib-devhelp              1.0.1              
sphinxcontrib-htmlhelp             1.0.2              
sphinxcontrib-jsmath               1.0.1              
sphinxcontrib-qthelp               1.0.2              
sphinxcontrib-serializinghtml      1.1.3              
sphinxcontrib-websupport           1.1.2              
spyder                             3.3.6              
spyder-kernels                     0.5.2              
SQLAlchemy                         1.3.10             
statsmodels                        0.10.1             
sympy                              1.4                
tables                             3.6.1              
tblib                              1.5.0              
tensorflow-estimator               1.14.0             
tensorflow-gpu                     1.14.0             
termcolor                          1.1.0              
terminado                          0.8.2              
testpath                           0.4.2              
toolz                              0.10.0             
tornado                            6.0.3              
tqdm                               4.36.1             
traitlets                          4.3.3              
unicodecsv                         0.14.1             
Unidecode                          1.1.1              
urllib3                            1.24.2             
wcwidth                            0.1.7              
webencodings                       0.5.1              
Werkzeug                           0.16.0             
wheel                              0.33.6             
widgetsnbextension                 3.5.1              
wrapt                              1.11.2             
wurlitzer                          1.0.3              
xlrd                               1.2.0              
XlsxWriter                         1.2.2              
xlwt                               1.3.0              
zict                               1.0.0              
zipp                               0.6.0     

别告诉我这里看不到cudnn。。

总之conda是个垃圾玩意。

另外有相关问题可以加入QQ群讨论,不设微信群

QQ群:868373192 

扫描二维码关注公众号,回复: 10371797 查看本文章

语音深度学习群

发布了242 篇原创文章 · 获赞 237 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/SPESEG/article/details/103118643