怎样安装第三方包到Anaconda环境?

安装Anaconda后貌似默认的python环境被修改了,那么怎么安装第三方包到这个Anaconda环境?直接pip貌似安装到系统自带的环境去了 然后conda命令安装说找不到

mac系统

goodapp:~ pretty$ python
Python 2.7.14 |Anaconda, Inc.| (default, Oct 5 2017, 02:28:52)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

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

goodapp:~ pretty$ pip2 install pyperclip
Requirement already satisfied: pyperclip in /usr/local/lib/python2.7/site-packages
goodapp:~ pretty$ conda install pyperclip
Fetching package metadata ...........

PackageNotFoundError: Packages missing in current channels:

  • pyperclip

We have searched for the packages in the following channels:

阅读 10.2k
1 个回答

在anaconda的安装目录bin下有pip

你可以用 anaconda安装目录/bin/pip install 包

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏