How to install pyperclip to Anaconda?

8.6k views Asked by At

I want to install pyperclip from GitHub using pip install but unfortunately it's only installed to pip and not Anaconda. I'm using PyCharm and my interpreter is Anaconda. (Linux)

I want Anaconda to install the package 'pyperclip' as well so I can use it in PyCharm. I've try Googling but can't find any result.

6

There are 6 answers

1
MSeifert On

You need to make sure the following command uses the pip in your CONDA_FOLDER/Scripts/pip or CONDA_FOLDER/envs/ENVIRONMENT_NAME/Scripts/pip:

pip install git+https://github.com/asweigart/pyperclip.git

or if a specific branch (instead of the default one is needed) then use:

pip install git+https://github.com/asweigart/pyperclip.git@BRANCHNAME

However you need to make sure your PyCharm actually uses the environment in which you install the package! Otherwise there is no sense in installing it in the wrong one.

0
Joe Johnson On

I was having a hard time installing pyperclip on Anaconda Jupyter notebook. I installed pip and also upgraded it to the latest version. I followed your answers but didn't have luck.

If you're a Windows user, here's how I resolved:

1) Open Anaconda terminal (it's your Windows terminal inside Anaconda)

2)It will open showing the C drive and your username like: C:\Users\joe.jacob

3)C:\Users\joe.jacob\ dir (this will show you where you have Jupyter Notebook. Mine was at .jupyter, so I navigated to it using: cd .jupyter

C:\Users\joe.jacob\cd .jupyter

4)Now install pyperclip at your jupyter notebook like this:

C:\Users\joe.jacob\.jupyter>pip install pyperclip

5) It installs pyperclip package. Installing other pip packages is similar. I hope this helps.

0
GrowingGratefully On

From Anaconda's website, run the following in Terminal/cmd:

conda install -c conda-forge pyperclip

0
Satyam Dahiwal On

To install pyperclip from conda run following command.

conda install -c bryanwweber pyperclip 
0
George On

I am not sure because I am not running linux and I never tried it but according to the official website

  1. run anaconda prompt
  2. and then type: conda install -c auto pyperclip=1.3

for more info: https://anaconda.org/auto/pyperclip

0
ajayi Abdulmalik On

search for anaconda prompt on your computer and type one of the following

conda install -c conda-forge pyperclip
conda install -c "conda-forge/label/gcc7" pyperclip
conda install -c "conda-forge/label/cf201901" pyperclip
conda install -c "conda-forge/label/cf202003" pyperclip

then click enter and wait for it to download you can repeat it again to confirm whether its installed