安装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 pyperclipgoodapp:~ 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:
在anaconda的安装目录bin下有pip
你可以用 anaconda安装目录/bin/pip install 包