Nyx*_*nyx 15 python macos pip anaconda
刚刚在Mac OSX Mavericks上下载并安装了anaconda 3.6.2,我需要安装一个seaborn
未预装anaconda 的软件包.
$ conda install seaborn
Fetching package metadata: ..
Error: No packages found in current osx-64 channels matching: seaborn
You can search for this package on Binstar with
binstar search -t conda seaborn
You may need to install the Binstar command line client with
conda install binstar
Run Code Online (Sandbox Code Playgroud)
接下来我尝试使用pip
安装包
$ which pip
/Users/username/anaconda/bin/pip
$ pip install seaborn
Could not find an activated virtualenv (required).
Run Code Online (Sandbox Code Playgroud)
尝试root
再次激活Anaconda env,但仍然无法正常工作
$ source activate root
discarding /Users/username/anaconda/bin from PATH
prepending /Users/username/anaconda/bin to PATH
$ pip install seaborn
Could not find an activated virtualenv (required).
Run Code Online (Sandbox Code Playgroud)
接下来我尝试激活virualenv并且pip install
工作.
workon testEnv
pip install seaborn
Run Code Online (Sandbox Code Playgroud)
现在我iPython notebook
从Anaconda的发射器发射了.但seaborn
似乎没有找到包裹!
是seaborn
包安装真的?
在~/bashprofile
,我有:
# virutalenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
source /Users/username/.virtualenvs/datasci/bin/virtualenvwrapper.sh
# added by Anaconda 2.0.1 installer
export PATH="/Users/username/anaconda/bin:$PATH"
Run Code Online (Sandbox Code Playgroud)
删除了2个virtualenvwrapper行,重新加载.bash_profile,但pip install
仍然给出错误Could not find an activated virtualenv (required).
激活另一个conda环境source activate testenv
没有帮助.
$ source activate ~/.bash_profile
$ pip install seaborn
Could not find an activated virtualenv (required).
$ source activate testenv
discarding /Users/username/anaconda/bin from PATH
prepending /Users/username/anaconda/envs/testenv/bin to PATH
$ pip install seaborn
Could not find an activated virtualenv (required).
Run Code Online (Sandbox Code Playgroud)
小智 17
我在使用Mac安装ggplot时遇到同样的问题.如果从终端执行:
//anaconda/bin/pip install module_name
Run Code Online (Sandbox Code Playgroud)
有用.我希望它可以帮助你!
MC
Mar*_*rth 11
你需要安装anaconda版本的pip.赶紧跑:
conda install pip
Run Code Online (Sandbox Code Playgroud)
这将在激活的conda环境中安装pip
从 bashprofile 中删除 virtualenvwrapper 行。使用 Anaconda,您应该使用 conda 环境而不是 virtualenvs,并且使用 virtualenvs 最终可能会破坏您的 conda 环境。
归档时间: |
|
查看次数: |
50423 次 |
最近记录: |