簡體   English   中英

使用pip或easy_install和ipython / conda安裝軟件包

[英]Installing a package using pip or easy_install with ipython / conda

我正在嘗試在Anaconda環境中安裝'frida',盡管它可以很好地安裝,但從IPython導入它時仍然出現錯誤:

In [4]: import frida
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-58e5c65e5010> in <module>()
----> 1 import frida

ImportError: No module named frida

在普通的python shell上,導入工作正常。 問題僅在於IPython。

我嘗試從conda命令行使用easy_install-不能。

我已經從IPython shell嘗試過此操作:

In [5]: easy_install.main( ["-U","frida"] )

並且該軟件包安裝成功,但是IPython導入時仍然給出錯誤。

點子找不到包。

我似乎缺少IPython軟件包的內容-如何將軟件包安裝到IPython?

如果您在virtualenv中工作,那么將IPython安裝到virtualenv中可以解決此類問題。

通常,IPython在virtualenv內部啟動時會給出此建議。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM