简体   繁体   中英

How to import pygame, pyperclip?

I am fairly new to python but am having issues importing certain packages within my code. I try to import pyperclip aswell as pygame . I've installed them both manually and I've tried importing them using import pygame and import pyperclip and I get

"no module named 'pyperclip'"

and the same thing for pygame . I've tried opening by putting just import pygame and saved it to run it in the interactive shell and I've also just tried typing it into the interactive shell.

I'm running linux mint 17.3 and python 2.7.6 Has anyone else had this issue?

Any help would be appreciated. Za

I had the same problem. I am also new to Python and programming. I tried about 100 things, but what worked for me was typing the following in the command shell: pip install pyperclip

That was it. However, I was using Windows' command module, so. . . you know. But it's worth a shot!

This link might help, too (it has Linux instructions, etc): https://github.com/asweigart/pyperclip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM