Closed DBerke closed 5 years ago
Alright, well, to spoil the ending, after several hours of getting nowhere I ended up simply reinstalling a fresh copy of Anaconda since nothing I could find worked. I tried the suggestion given in this comment (https://github.com/conda/conda/issues/7714#issuecomment-417553149) where you make a temporary Miniconda installation and use that to install conda in your original installation, but even that didn't work. (I've since closed the tab with the error output, unfortunately, so I don't remember why not exactly.)
Ultimately a fresh install, creating a new environment, and getting the (fairly small number of) packages I had before set up took less than an hour (faster than I'd expected), so if you ever manage to get your Anaconda installation as hopelessly locked up as I did nuking it from orbit and rebuilding from scratch may be faster than trying to salvage it. If conda
still works for you (it didn't for me) you can list all the packages in your environment with conda list --name ENVNAME
ahead of time so you don't have to remember them yourself.
Today I tried running
conda update spyder
. I'd just recently fixed an issue where, by downgrading conda from 4.6.4 to 4.5.11, conda would fail with an error about the environment having been modified by a more recent version of conda. (I don't know how relevant this is, but I'll include it anyway.) Anyway, I'd just successfully runconda update conda
, and decided to upgrade my editor. I probably should've been suspicious when it wanted to download something like 40 new packages as a result of this simple command, but I left it downloading while I went to lunch.Getting back after lunch, I found the following error:
I tried starting Spyder and it failed with the error
/bin/bash: /Users/dberke/anaconda3/bin/pythonw: No such file or directory
. I then triedconda install spyder
, and got the following error:Trying to run
conda install ruamel_yaml
, however, produced the exact same error, as did any other conda command. I tried runningpip install ruamel_yaml
, and got an error:(This despite the fact that I'd used pip a few hours before.) A
which pip
pointed me to/usr/local/bin/pip
, so I tried using that to install thisruamel_yaml
. It ran without giving an error, but I can't importruamel_yaml
in the Python interpreter, and conda keeps throwing the same error. And to top it all off, Spyer is apparently gone as well, so I'm out an editor.Edit: running
~$ find . -name "ruamel*"
gives the following output:Edit 2: Ah, system
pip
is Python 2.7, so using it to install doesn't do anything for me. Andpip3
fails with