@Miri *********
You can only apply in the country where you currently stays. You’ll also need to leave from the country issuing your e-visa.
@Ron ******
’s information it’s not accurate and incorrect. As you see here, you put in your country of origin/passport and where you currently stays. In this example I used passport from UK and currently stay in Portugal where you can use the e-visa system as you see. If the country you currently stays doesn’t use the e-visa you’ll need to apply in person at the embassy/consulate. Countries who use e-visa don’t accept walk-in’s. Everything then goes through the e-visa system. You’ll of course need to stay in the country during the processing time, but that’s really the same if you apply online or in person. You can put in your country of origin/passport and where you currently stay here and check if you can apply online or need to make an appointment for a personal application.
***********************