Can't import Pyperclip

Ozixic picture Ozixic · Jun 30, 2016 · Viewed 16.8k times · Source

I am having trouble importing Pyperclip in IDLE.
I am running windows 7 (64-bit).
I have Python 3.5.2 Installed on: C:\Python\Python35.
I opened command prompt and initiated the install by typing pip install pyperclip after changing directory to C:\Python\Python35\Scripts. It successfully installed Pyperclip-1.5.27. I then went to IDLE and typed in import pyperclip but the following error is showing up:

Traceback (most recent call last): File "", line 1, in import pyperclip ImportError: No module named 'pyperclip'

I tried to fix this by adding "C:\Python\Python35" to the end of the "Path" variable, in the systems environmental variables.

Answer

Secant Zhang picture Secant Zhang · Jul 26, 2017

Try

pip3 install pyperclip

That installs pyperclip in python3.