【问题标题】:Trouble installing Jupyter Notebook安装 Jupyter Notebook 时遇到问题
【发布时间】:2018-10-15 10:00:31
【问题描述】:

我正在尝试在我的虚拟环境中安装 jupyter notebook。我在我的虚拟环境和最新的 pip 版本上运行了 python 3.5。我几乎无法使用 pip 安装任何库。即使我运行以下命令,它也会给我以下错误:

python3 -m pip install --upgrade pip
python3 -m pip install jupyter

错误:

The directory '/Users/[user]/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/[user]/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting jupyter
  Could not fetch URL https://pypi.python.org/simple/jupyter/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
  Could not find a version that satisfies the requirement jupyter (from versions: )
No matching distribution found for jupyter

【问题讨论】:

    标签: python pip jupyter-notebook


    【解决方案1】:

    啊,是的,在 MacOS 上正确安装 Python 的永恒问题...

    您应该使用brew 安装python 来防止这些问题,因为它会将您设置为所有目录的正确所有者,而不是root。这似乎是一个很好的指南:How can I use Homebrew to install both Python 2 and 3 on Mac?

    或者,您可以使用sudo 运行上面的代码,但不鼓励这样做。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-13
      • 1970-01-01
      • 2018-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-19
      • 2014-09-11
      相关资源
      最近更新 更多