Python Forum
clipboard module in python3.6
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
clipboard module in python3.6
#1
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)
Reply
#2
(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
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  non-latin characters in console from clipboard Johanson 3 703 Oct-26-2023, 10:10 PM
Last Post: deanhystad
  saving and loading text from the clipboard with python program MaartenRo 2 1,664 Jan-22-2022, 05:04 AM
Last Post: MaartenRo
  How to listen to clipboard content change without polling the clipboard continuously? edgelord 0 2,492 Nov-27-2020, 06:07 AM
Last Post: edgelord
  Problem posting image to clipboard noel 0 2,174 Sep-26-2020, 10:50 AM
Last Post: noel
  Cannot use "threading" module on python3 Tei_tsubaki 1 3,058 Aug-24-2020, 10:26 AM
Last Post: Larz60+
  Python3 openpyxl module GHULIEV 0 1,501 Aug-07-2020, 08:50 PM
Last Post: GHULIEV
  How to copy data to clipboard OAP 10 7,861 Mar-19-2020, 10:32 PM
Last Post: OAP
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 3,885 Mar-09-2020, 08:20 PM
Last Post: micseydel
  How can I paste an entire file from clipboard to a folder? daverave1212 5 8,504 Feb-08-2020, 04:33 PM
Last Post: snippsat
  Auto-copy all displayed "print" results into clipboard? smallabc 1 1,658 Dec-16-2019, 02:10 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020