我曾經(jīng)在蟒蛇2.7中使用Anaconda$ pythonPython 2.7.14 |Anaconda custom (64-bit)| (default, Dec 7 2017, 17:05:42) [GCC 7.2.0] on linux2Type "help", "copyright", "credits" or "license" for more information.當(dāng)我決定安裝tensorflow時(shí)(由于某種原因,我使用了非gpu版本)我使用的命令是:$ conda install -c anaconda tensorflow-gpu但是,完成后(有關(guān)此cmd的輸出的詳細(xì)信息),我不再需要conda了:$ conda install -c conda-forge kerasTraceback (most recent call last): File "/home/me/anaconda2/bin/conda", line 12, in <module> from conda.cli import mainModuleNotFoundError: No module named 'conda'(注意:我也不再擁有Keras),現(xiàn)在正在運(yùn)行Python 3.7(!?):$ pythonPython 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34) [GCC 7.3.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> 發(fā)生了什么?如何阻止它再次發(fā)生?這之前發(fā)生過一次,我最終刪除了所有anaconda文件,然后重新安裝。我不想養(yǎng)成這種習(xí)慣。我的輸出conda install是:$ conda install -c anaconda tensorflow-gpuCollecting package metadata: doneSolving environment: done## Package Plan ## environment location: /home/me/anaconda2 added / updated specs: - tensorflow-gpuThe following packages will be downloaded: package | build ---------------------------|----------------- _tflow_190_select-0.0.1 | gpu 2 KB anaconda absl-py-0.7.0 | py36_0 156 KB anaconda astor-0.7.1 | py36_0 43 KB anaconda c-ares-1.15.0 | h7b6447c_1 98 KB anaconda ca-certificates-2018.12.5 | 0 123 KB anaconda certifi-2018.11.29 | py36_0 146 KB anaconda cudatoolkit-9.0 | h13b8566_0 340.4 MB anaconda cudnn-7.1.2 | cuda9.0_0 367.8 MB anaconda cupti-9.0.176 | 0 1.6 MB anaconda
- 1 回答
- 0 關(guān)注
- 1568 瀏覽
添加回答
舉報(bào)
0/150
提交
取消