如何从 IPython 中安装 Python 包? [英] How to install a Python package from within IPython?
本文介绍了如何从 IPython 中安装 Python 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以在不离开 IPython shell 的情况下安装 python 包.
I wonder if it's possible to install python packages without leaving the IPython shell.
推荐答案
在现代 ipython 或 jupyter 中执行此操作的最佳方法是使用 %pip
魔法:
The best way to do this in modern ipython or jupyter is to use the %pip
magic:
%pip install my_package
这篇关于如何从 IPython 中安装 Python 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文