使用Pip3和conda在mac上安装软件包

时间:2017-12-17 06:22:45

标签: python-3.x pip conda

我的Mac已经安装了Anaconda。 当我想安装一个包时,例如,jaqs。我用

pip3 install jaqs

然后我用

pip3 list

It seems that i have successfully installed jaqs with pip3

但是我在终端输入python3,它是Anaconda中的python3.5,而不是System自包含的python3.5。我输入

import jaqs

但没有这样的模块。(我检查了conda列表,发现其中没有jaqs模块) 所以我的问题是: 如何在终端中打开系统自包含的python3.5并导入jaqs。 如果没有,我不能在Pycharm中使用该模块。伤心。 THX。

1 个答案:

答案 0 :(得分:0)

从conda docs Installing conda on a system that has other Python installations or packages,他们提到了如何检查默认设置的Python安装:

function custom_link_func( $atts ) {
$atts = shortcode_atts(
        array(
            'productid' => 'my-product-id'
        ), $atts );

    return '<a href="http://example.com/product-tag/' . $atts['productid'] . '">' . preg_replace("/-/", " ", $atts['productid']) . '</a>';  //Replace dashes "-" with spaces " ".
}

add_shortcode( 'custom_link', 'custom_link_func' );

关于如何改变它还有其他几个问题/答案。(似乎符号链接是要走的路。)例如。 thisthis

或者,如果您不关心默认的Python安装,并希望能够在PyCharm中使用它:您可以通过转到&#来定义要在PyCharm中运行的Python环境34;文件&#34; - &GT; &#34;设置&#34; - &GT; &#34;项目&#34; - &GT; &#34;项目口译员&#34;并且:或者:

  • 从下拉列表中,点击&#34;全部显示&#34;然后单击绿色&#34; +&#34;或
  • 点击cog,然后&#34;添加本地&#34;。

至少你可以使用自己选择的环境。

相关问题