Проблемы с установкой ноутбука Jupyter - PullRequest
0 голосов
/ 05 мая 2018

Я пытаюсь установить ноутбук Jupyter в моей виртуальной среде. У меня есть Python 3.5, запущенный в моем виртуальном окружении и последняя версия pip. У меня проблемы с установкой практически любой библиотеки с помощью 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

1 Ответ

0 голосов
/ 05 мая 2018

Ах да, извечные проблемы правильной установки Python на MacOS ...

Вы должны использовать brew для установки python, чтобы предотвратить эти проблемы, поскольку он установит вас как правильного владельца всех каталогов вместо root. Это похоже на хорошее руководство: Как я могу использовать Homebrew для установки Python 2 и 3 на Mac?

В качестве альтернативы, вы можете запустить свой код выше с sudo, но это не рекомендуется.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...