gpt4 book ai didi

python - 无法在 mac 上安装 ipython

转载 作者:行者123 更新时间:2023-11-30 21:49:39 25 4
gpt4 key购买 nike

我正在使用 Mac El Capitan,我需要安装 iPython 并且必须使用 iPython 笔记本

我用

$ pip install ipython

安装 ipython,但它返回给我

Requirement already satisfied (use --upgrade to upgrade): ipython in /Library/Python/2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): traitlets in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): pickleshare in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): simplegeneric>0.8 in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): decorator in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): gnureadline in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): appnope in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): pexpect in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): ipython-genutils in /Library/Python/2.7/site-packages (from traitlets->ipython)
Requirement already satisfied (use --upgrade to upgrade): path.py in /Library/Python/2.7/site-packages (from pickleshare->ipython)
Requirement already satisfied (use --upgrade to upgrade): ptyprocess>=0.5 in /Library/Python/2.7/site-packages (from pexpect->ipython)

abhi ~ $ ipython
-bash: ipython: command not found

知道我做错了什么,或者我现在应该做什么?

我在空闲时尝试了这个

>>> try:
import ipython
print "imported"
except :
print "not installed"

it says not installed.

最佳答案

尝试这个命令:

python -m IPython

关于python - 无法在 mac 上安装 ipython,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34833053/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com