【发布时间】:2020-01-10 01:20:33
【问题描述】:
我正在使用 MacOS,并且我最近安装了 anaconda,但是当我想检查 ipython 的版本时,它给出了 ipython - command not found。这不是堆栈流中其他人询问的“包装器/启动器问题”,因为我在我的目录中找不到 ipython。我在下面的终端中粘贴了以下命令。我希望这会有所帮助。
lawn-128-61-127-169:bin s$ pwd
/Library/Frameworks/Python.framework/Versions/3.7/bin
lawn-128-61-127-169:bin s$ ls
2to3 f2py3.7 pydoc3 python3.7m
2to3-3.7 flake8 pydoc3.7 python3.7m-config
autopep8 idle3 pyflakes pyvenv
chardetect idle3.7 python3 pyvenv-3.7
easy_install-3.7 pip3 python3-config
f2py pip3.7 python3.7
f2py3 pycodestyle python3.7-config
lawn-128-61-127-169:bin s$ conda install ipython
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
lawn-128-61-127-169:bin s$ conda -V
conda 4.8.1
lawn-128-61-127-169:bin s$ python3.7 -V
Python 3.7.4
lawn-128-61-127-169:bin s$ ipython -V
-bash: ipython: command not found
lawn-128-61-127-169:bin s$ which ipython
lawn-128-61-127-169:bin s$ python3.7 -m IPython
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7: No module named IPython
【问题讨论】:
标签: python macos anaconda ipython conda