If you wear a pumpkin as helmet, the enderman won't be bothered either.
gaming.stackexchange.com/users/50774/kutschkem
Endermen tend to teleport in random occasions, when you look directly at them, and when you attack them.
This will be a difficult task, but try not to look too closely at one when you approach it to improve your chances of taking a picture with one.
As an alternative, you could press F5 twice to take a selfie next to an Enderman far off in the distance.
gaming.stackexchange.com/users/61812/oldmud0
If you are under the effects of an invisibility potion, the Endermen won't be able to see you; but as soon as you attack one, they will see you and attack you back.
gaming.stackexchange.com/users/63072/aman207
Endermen do not being bothered if you do not look directly at him, but his legs.
It not prevents him to teleport, but if you are quick enough, you can take a selfie before he start teleport.
gaming.stackexchange.com/users/44405/Gabor Garami
If all you want is a screenshot with him, Endermen won't become aggressive when you look at them in creative mode.
You could start a temporary world in creative mode (or switch gamemodes with commands ), take your screenshot, and then switch back to survival.
gaming.stackexchange.com/users/17179/IQAndreas
This may already be answered, but you could also press F2
(It may be FN + F2 depending on your computer) once to take a screenshot of it.
The screenshot will appear in the /appdata/Roaming/.minecraft/screenshots/ directory (If on windows) or /users/user/library/application support/minecraft/screenshots/ directory if on a mac.
gaming.stackexchange.com/users/63459/joeybab3
how about summoning him riding another entity that way he is controlled by the entity and also you can add slowness and summon them -1 under the ground so that the other entity gets cut off
gaming.stackexchange.com/users/63431/Khorps
To make Enderman stay in one place, let go into cobwebs since they can't teleport while stuck in cobwebs.
Here you will be able to build your Enderman.
If you want to examine closely, wear a pumpkin on your head so Endermen won't be hostile when looking at you.
You might have to examine it in third person since the pumpkin blocks some image.
If you still can't do this, press F5 to take a screenshot of the Enderman.
gaming.stackexchange.com/users/127996/Jim Jones
I'm trying to draw a picture of an enderman but it keeps on teleporting...I want the enderman to stay so I can also stand beside in and press F5 then click fn then prt sc....Help?
How to make an Enderman stay?
gaming.stackexchange.com
<minecraft-java-edition>
gaming.stackexchange.com/questions/145043
gaming.stackexchange.com/users/63284/StarLight
If you wear a pumpkin as a helmet, the enderman won't be bothered. Don't look directly at him. If you are under the effects of an invisibility potion, the Endermen won't be able to see you.  Endermen tend to teleport when there is eye contact. In order for them to stay unprovoked, the most common tactic is to get close without looking at them.
The community proposes few ways to make an Enderman stay in one position.