在Mac OS中,我迷上了conda。
Conda命令,例如“ conda install”,“ conda update”不起作用。当我运行此类命令时,它显示“ 解决环境:失败”,“ PackagesNotFoundError ”。我粘贴了下面的示例。
我试图重新安装anaconda,但是我什至无法运行“ conda install anaconda-clean”。结果如下所示。
$conda update conda
Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> cryptography==1.7.1=py36_0
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> dill==0.2.5=py36_0
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> idna==2.2=py36_0
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> matplotlib==2.0.0=np111py36_0
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> numexpr==2.6.1=np111py36_2
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> numpy==1.11.3=py36_0
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> pycosat==0.6.1=py36_1
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> pycurl==7.43.0=py36_2
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> readline==6.2=2
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> scipy==0.18.1=np111py36_1
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> setuptools==27.2.0=py36_0
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> tk==8.5.18=0
- pkgs/free/osx-64::anaconda==4.3.0=np111py36_0 -> xz==5.2.2=1
Current channels:
- https://conda.anaconda.org/conda-forge/osx-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
我认为这可能是因为我使用“ pip”安装了一些软件包,而不是“ conda”。
如果需要其他信息,请告诉我。感谢您的关注。
答案 0 :(得分:-1)
我遇到了同样的问题,并通过使用本指南手动卸载conda和anaconda最终解决了该问题(尽管我无法在链接的第4步中做出决定,这涉及在Library文件夹中删除软件包服务文件) :
https://nektony.com/how-to/uninstall-anaconda-on-a-mac
1。退出Anaconda应用程序,然后使用“活动监视器”强制退出在后台运行的任何Anaconda进程。
3。从“应用程序”文件夹中删除Anaconda应用程序。
4。在终端中使用rm -rf删除以下内容:
〜/ anaconda3
〜/ .bash_profile-anaconda3.bak
〜/ .condarc
〜/ .conda
〜/ .anaconda
然后我重新安装了anaconda,现在一切似乎都可以正常工作。