简体   繁体   English

在anaconda中没有使用pip安装任何软件包

[英]no package gets installed using pip in anaconda

I have noticed that any package I install using pip gets installed in the default Python directory and not anaconda and this is very troubling. 我注意到,我使用pip安装的任何软件包都安装在默认的Python目录中,而不是安装在anaconda中,这非常麻烦。 I tried to edit the PATH variable in my system using : 我尝试使用以下命令在系统中编辑PATH变量:

export PATH=/home/karen/anaconda3/bin:$PATH

The only thing I achived with this was that when I type python it starts anaconda (before, that command in the terminal just started the default python). 我唯一实现的是,当我键入python时,它启动了anaconda(之前,终端中的命令仅启动了默认的python)。 So when I uninstall anaconda I can access the libraries I installed using pip in default python. 因此,当我卸载anaconda时,可以访问在默认python中使用pip安装的库。 So how can I fix this problem? 那我该如何解决这个问题呢?

I'm using Ubuntu 15.10. 我正在使用Ubuntu 15.10。

If my guess is correct which pip will return the system installed pip, not the one in /home/karen/anaconda3/bin . 如果我的猜测是正确的which pip将返回系统安装的pip,而不是/home/karen/anaconda3/bin那个。 If this is the case, then you can fix your issue with conda install pip . 如果是这种情况,则可以使用conda install pip解决问题。 Then pip install <some package> will dump <some package> in to /home/karen/anaconda3/lib/pythonX.X/site-packages/<some package> 然后pip install <some package>pip install <some package>转储到/home/karen/anaconda3/lib/pythonX.X/site-packages/<some package> <some package> /home/karen/anaconda3/lib/pythonX.X/site-packages/<some package>

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

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