Python Forum

Full Version: clipboard module in python3.6
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
my question here
I would like to know how to find built in modules in a particular python version.

I am trying to import pyperclip or clipboard module in python3.6, but I am getting ModuleNotFoundError.

Also downloaded the pyperclip-1.5.27.zip extracted it and placed it in the directory where the program that uses the module resides, but still getting ModuleNotFoundError.


m
import sys, webbrowser, pyperclip

if len(sys.argv) > 1:
  address = ' '.join(sys.argv[1:])
else:
  address = pyperclip.paste()

webbrowser.open('http://maps.google.com/place'+address)
(May-09-2017, 05:03 AM)bmohanraj91 Wrote: [ -> ]Also downloaded the pyperclip-1.5.27.zip extracted it and placed it in the directory where the program that uses the module resides

Python packages must be installed. On Linux
sudo pip3 install pyperclip