I'm a beginner at python. I wanted to use a module called [pyperclip], so I installed it with the following command, but when I run the program in Pycharm, I get ImportError: No module named...
. Could someone tell me the solution...?
install pip pyperclip
We have confirmed that the following command was able to install piperclip.
pip show pyperclip
Name—pyperclip
Version: 1.7.0
Summary—Across-platform clipboard module for Python. (Only handles plain text for now.)
Home-page: https://github.com/asweigart/pyperclip
Author:Al Sweigart
Author-email: [email protected]
license:BSD
Location: /Users/******/aconda3/lib/python 3.7/site-packages
Requirements:
Required-by:
However, when I checked the module(?) available in pycharm's preferences->project interupter, I found no pyperclip.
Also, I searched online for a solution, but when words such as environmental variables appear due to lack of study, I can't understand them at all...How did you acquire such pre-programming knowledge?
python pip pycharm
Is Anaconda installed?
If so, maybe there is a piperclip installed on the Anaconda package.
If the interpreter setting remains the default in Pycharm, I think Python, which was the default on the PC, is used instead of Anaconda, so I think you can change it. In short, you can combine Pycharm and Anaconda. Here's how to do it.
File->Setting->Project:***->Project Interpreter
Please open it up to here and select Add from the gear mark in the upper right corner.
Press the "..." mark to the right of the Base Interpreter and select the python file in Anaconda.
The questioner is probably a Mac, so I think there is a binary file called python hidden in Users\****\Anaconda3\bin\.
Then press OK to restart Pycharm.
If you can't do this, please comment again.
Also, regarding knowledge of environmental variables, I honestly think this is an experience, but if you don't look into anything, you won't know for the rest of your life, so whenever you find words you don't understand, you may only have to look them up online or something...
I think the shortest way is to touch your PC a lot and learn it while doing it.
© 2024 OneMinuteCode. All rights reserved.