YayaYaya
YayaYaya

Reputation: 195

Spyder: [Errno 2] No such file or directory

I want to run this code in Github : https://github.com/llazzaro/lsa_python but I don't know how to execute it with nosetests. I have python 2.7.11 and anaconda 4.0.0, I have to run it with Spyder because I need scientific packages so when I put this link: https://github.com/llazzaro/lsa_python on Spyder I get this:

[C:\Anaconda2\python.exe: can't open file 'C:\Users\CLIENT\Desktop\lsa_python-master\sanstitre0.py': [Errno 2] No such file or directory]

Upvotes: 3

Views: 17190

Answers (2)

sayalok
sayalok

Reputation: 920

Little late to answer these questions But still if anyone facing the same issue this answer might help

I was facing the same issue. I even reinstall the anaconda. But it's still doing the same issue. Then I figure out something very silly.

First of all, you have to set your working directory

After that, you have to hit the Run button. I was pressing ctrl + enter But after setting the working directory for the first time you have to hit the run button then it will work

Hope it will help.

enter image description here

Upvotes: 4

arne.z
arne.z

Reputation: 3576

Maybe you need to set your working directory correctly. It probably looks for the path from the current working directory.

You can change it here: enter image description here

Upvotes: 3

Related Questions