为了账号安全,请及时绑定邮箱和手机立即绑定

使用conda安装软件包如何更改我的python版本并删除co​​nda?

使用conda安装软件包如何更改我的python版本并删除co​​nda?

繁花不似锦 2020-02-01 17:11:44
我曾经在蟒蛇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.当我决定安装tensorflow时(由于某种原因,我使用了非gpu版本)我使用的命令是:$ conda install -c anaconda tensorflow-gpu但是,完成后(有关此cmd的输出的详细信息),我不再需要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),现在正在运行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.>>> 发生了什么?如何阻止它再次发生?这之前发生过一次,我最终删除了所有anaconda文件,然后重新安装。我不想养成这种习惯。我的输出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 回答

  • 1 回答
  • 0 关注
  • 1449 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信