简体   繁体   English

如何将pyperclip安装到Anaconda?

[英]How to install pyperclip to Anaconda?

I want to install pyperclip from GitHub using pip install but unfortunately it's only installed to pip and not Anaconda.我想使用pip install从 GitHub 安装 pyperclip 但不幸的是它只安装到 pip 而不是 Z85376460A2DCE8B58.CCBDC9 I'm using PyCharm and my interpreter is Anaconda.我正在使用 PyCharm,我的解释器是 Anaconda。 (Linux) (Linux)

I want Anaconda to install the package 'pyperclip' as well so I can use it in PyCharm.我希望 Anaconda 也安装 package 'pyperclip',这样我就可以在 PyCharm 中使用它。 I've try Googling but can't find any result.我试过谷歌搜索,但找不到任何结果。

From Anaconda's website , run the following in Terminal/cmd: Anaconda的网站上 ,在Terminal / cmd中运行以下命令:

conda install -c conda-forge pyperclip 康达安装-c康达伪造pyperclip

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 : 你需要确保下面的命令使用pipCONDA_FOLDER/Scripts/pipCONDA_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! 但是,您需要确保您的PyCharm实际使用了安装软件包的环境! Otherwise there is no sense in installing it in the wrong one. 否则,将其安装在错误的位置是没有意义的。

I am not sure because I am not running linux and I never tried it but according to the official website 我不确定,因为我没有运行linux,但我从未尝试过,但是根据官方网站

  1. run anaconda prompt 运行anaconda提示符
  2. and then type: conda install -c auto pyperclip=1.3 然后键入: conda install -c auto pyperclip = 1.3

for more info: https://anaconda.org/auto/pyperclip 有关更多信息: https : //anaconda.org/auto/pyperclip

要从conda安装pyperclip,请运行以下命令。

conda install -c bryanwweber pyperclip 

I was having a hard time installing pyperclip on Anaconda Jupyter notebook. 我很难在Anaconda Jupyter笔记本上安装pyperclip。 I installed pip and also upgraded it to the latest version. 我安装了pip并将其升级到最新版本。 I followed your answers but didn't have luck. 我听了你的回答,但是没有运气。

If you're a Windows user, here's how I resolved: 如果您是Windows用户,以下是我的解决方法:

1) Open Anaconda terminal (it's your Windows terminal inside Anaconda) 1)打开Anaconda终端(这是Anaconda内部的Windows终端)

2)It will open showing the C drive and your username like: C:\\Users\\joe.jacob 2)它将打开,显示C驱动器和您的用户名,例如: 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 3) C:\\Users\\joe.jacob\\ dir (这将向您显示Jupyter Notebook的位置。我的位置是.jupyter,所以我使用cd .jupyter导航到它

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

4)Now install pyperclip at your jupyter notebook like this: 4)现在像这样在您的jupyter笔记本上安装pyperclip

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

5) It installs pyperclip package. 5)安装pyperclip软件包。 Installing other pip packages is similar. 安装其他pip程序包类似。 I hope this helps. 我希望这有帮助。

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在您的计算机上搜索 anaconda 提示符并键入以下命令之一 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 然后点击回车等待下载你可以重复一遍确认是否安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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