Can't open Jupyter Notebook or run "conda env update"

I just started working with paperspace by launching the machine. I gave a conda env update but aborted it midway. When i started conda env update again it asked me to give the command conda clean --packages and I did.

now when i give conda env update I get this at the end

Found existing installation: torchvision 0.2.0

Cannot remove entries from nonexistent file
/home/paperspace/anaconda3/envs/fastai/lib/python3.6/site-packages/easy-install.pth

CondaValueError: pip returned an error.

I’m stuck now and can’t run jupyter because I get

socket.gaierror: [Errno -2] Name or service not known

Please help!

I’ve encountered exactly the same issue:

Installing collected packages: torchvision, pandas-summary, torchtext, PyHamcrest, lxml
Found existing installation: torchvision 0.2.0
Cannot remove entries from nonexistent file /home/paperspace/anaconda3/envs/fastai/lib/python3.6/site-packages/easy-install.pth
1 Like

maybe I should change the question

yep, probably to 'unable to run “conda env update” ’
:+1:

That worked for me:

Didn’t work for me. Can you specify exactly what you did?

Before running “course env update”, type/enter the following line:

curl https://bootstrap.pypa.io/ez_setup.py -o - | python

Afterwards, if you run “course env update” it should work.

7 Likes

Thanks, this worked for me.

same problem, also worked for me to run
curl https://bootstrap.pypa.io/ez_setup.py -o - | python

Anyone know why? It seems to update setuptools, which is used by?? python to install packages right?
Anyways… it worked.

2 Likes

Just make sure an empty file exists there…

touch /home/paperspace/anaconda3/envs/fastai/lib/python3.6/site-packages/easy-install.pth

Then rerun conda env update.

1 Like

This solution worked for me, thanks

Worked for me - thanks!