久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

無法在 Anaconda 中 pip 安裝包

Unable to pip install packages in Anaconda(無法在 Anaconda 中 pip 安裝包)
本文介紹了無法在 Anaconda 中 pip 安裝包的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

剛剛在 Mac OSX Mavericks 上下載并安裝了 anaconda 3.6.2,我需要安裝一個未預裝 anaconda 的包 seaborn.

Just downloaded and installed anaconda 3.6.2 on Mac OSX Mavericks and I need to install a package seaborn which is not pre-installed with 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

接下來我嘗試使用pip來安裝包

Next I tried to use pip to install the package

$ which pip
/Users/username/anaconda/bin/pip

$ pip install seaborn
Could not find an activated virtualenv (required).

嘗試再次激活 root Anaconda env,但還是不行

Tried activating root Anaconda env again, but still does not work

$ 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).

接下來我嘗試激活一個 virualenv 并且 pip install 工作正常.

Next I tried activating a virualenv and pip install works.

workon testEnv
pip install seaborn

現在我從 Anaconda 的啟動器啟動了 iPython notebook.但是seaborn包好像沒有找到!

Now I launched iPython notebook from Anaconda's launcher. But the seaborn package does not seem to be found!

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"

<小時>

更新

刪除了 2 個 virtualenvwrapper 行,重新加載了 .bash_profile,但 pip install 仍然給出錯誤 Could not find anactivated virtualenv (required). 激活另一個 conda 環境 source activate testenv 沒有幫助.


Update

Removed the 2 virtualenvwrapper lines, reloaded .bash_profile, but pip install still gives the error Could not find an activated virtualenv (required). Activating another conda environment source activate testenv does not help.

$ 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).

推薦答案

需要安裝anaconda版本的pip.運行:

You need to install the anaconda version of pip. Just run:

conda install pip

這將在激活的 conda 環境中安裝 pip

This will install pip inside of the activated conda environment

這篇關于無法在 Anaconda 中 pip 安裝包的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to install Selenium in a conda environment?(如何在 conda 環境中安裝 Selenium?)
get the CUDA and CUDNN version on windows with Anaconda installe(使用 Anaconda installe 在 Windows 上獲取 CUDA 和 CUDNN 版本)
How can I download Anaconda for python 3.6(如何下載適用于 python 3.6 的 Anaconda)
Using two different Python Distributions(使用兩個不同的 Python 發行版)
How can I install Anaconda aside an existing pyenv installation on OSX?(除了 OSX 上現有的 pyenv 安裝之外,如何安裝 Anaconda?)
Permanently set Python path for Anaconda within Cygwin(在 Cygwin 中為 Anaconda 永久設置 Python 路徑)
主站蜘蛛池模板: 亚洲精品一区二区网址 | 狠狠操网站 | 色婷婷亚洲国产女人的天堂 | 亚洲一区二区 | 国产欧美日韩综合精品一区二区 | 国产日韩欧美 | 亚洲不卡一 | 精品一区二区三区在线视频 | 午夜视频在线视频 | av黄色在线观看 | 精品免费国产视频 | 精品熟人一区二区三区四区 | 91视频网址 | 亚洲二区在线 | 精品欧美一区二区三区久久久 | 精品国产乱码久久久久久丨区2区 | 成人在线免费av | 精品欧美色视频网站在线观看 | 欧美日韩一区二区在线 | 热久久久 | 人人操日日干 | 国产欧美日韩二区 | 久久久欧洲| 99精品视频一区二区三区 | 91在线看 | 欧美一级久久 | 精品九九九 | 亚洲精品成人av | 亚洲欧美国产毛片在线 | 国产不卡在线观看 | 日韩欧美视频 | 一级做a爰片性色毛片视频停止 | 亚洲国产精品美女 | 在线观看视频一区二区三区 | 亚洲网站在线观看 | 欧美日韩中文在线 | 99综合 | 99久久精品免费看国产四区 | 五月激情综合网 | 天堂色 | 国产福利91精品 |