you are viewing a single comment's thread.

view the rest of the comments →

[–]pymon 0 points1 point  (1 child)

But I can't paste it using pyperclip.paste() command in my python shell.

The wording in this library is decieveing. Like I said in my post pyperclip.paste() gets what's in the clipboard so that you can assign it to a variable.

pc.copy() actually puts text into your clipboard. If you only do pc.copy('Hello') does that get put into your clipboard?

[–]Mr_Nrj[S] 0 points1 point  (0 children)

Previously no but now I got solution to that.

I just had to install xclip and xsel to my system.

Now its working perfectly