无法运行IPython Notebook:bash:IPython:找不到命令

时间:2019-12-26 11:36:48

标签: jupyter-notebook ipython

我已经使用Pip3成功安装了Ipython 6.0.0:

pip3 install IPython

但是尝试运行命令

Ipython

我收到此错误:

 bash: IPython: command not found

这是pip list的结果:

  • ipykernel(5.1.3)
  • ipython(6.0.0)
  • ipython-genutils(0.2.0)
  • ..
  • ..
  • 笔记本(6.0.2)

这是pip3 show IPython

的结果
 Name: ipython
 Version: 6.0.0
 Summary: IPython: Productive Interactive Computing
 Home-page: https://ipython.org
 Author: The IPython Development Team
 Author-email: ipython-dev@python.org
 License: BSD
 Location: /home/pi/.local/lib/python3.5/site-packages
 Requires: setuptools, traitlets, jedi, pexpect, pygments, pickleshare, simplegeneric, prompt-toolkit, decorator

1 个答案:

答案 0 :(得分:0)

这是区分大小写的问题...

正确的字体是IPython。

pip 区分大小写,请参见Is PyPI case sensitive? IPython已安装为ipython(小写),如您的 class ViewController: UIViewController { @IBOutlet weak var reportTableView: UITableView! let reportGroup = ["Dietary", "Weight", "Sleep", "Meditation", "Fitness"] let report = [["Calorie Breakdown", "Net Calories"], ["Last 3 Months"], ["Last 3 Months"],["Last 3 Months"],["Exercises by Type"]] func numberOfSections(in tableView: UITableView) -> Int { return report.count } func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { return reportGroup[section] } override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "reportSegue" { if let reportVC = segue.destination as? Report1ViewController, let indexPath = reportTableView.indexPathForSelectedRow { reportVC.dataToDisplay = report[indexPath.section][indexPath.row] } } } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } } extension ViewController: UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return report[section].count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) cell.textLabel?.text = report[indexPath.section][indexPath.row] return cell } } extension ViewController: UITableViewDelegate { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { performSegue(withIdentifier: "report1Segue", sender: nil) } }

所示

bash 区分大小写...

因此,只需输入pip3 show IPython

正如您指定的ipython一样,我还建议调用pip3以避免python2 / 3的混乱。