Лайфхаки

Маленькие, полезные хитрости

Инструкция по Anaconda & Conda. Что такое Анаконда Навигатор?

24.05.2023 в 15:42

Инструкция по Anaconda & Conda. Что такое Анаконда Навигатор?

Anaconda Navigator — это графический интерфейс пользователя на рабочем столе (GUI), включенный в дистрибутив Anaconda, который позволяет запускать приложения и легко управлять пакетами, средами и каналами conda без использования команд командной строки. Навигатор может искать пакеты в Anaconda Cloud или в локальном репозитории Anaconda. Он доступен для Windows, MacOS и Linux.

  • JupyterLab — это интерактивная среда разработки для работы с блокнотами, кодом и данными.
  • Jupyter Notebok — удобный инструмент для создания красивых аналитических отчетов, позволяет хранить вместе код, изображения, комментарии, формулы и графики. Работа ведется в браузере.
  • Spyder — интерактивной IDE для научных расчетов на языке Python. Данная IDE позволяет писать, редактировать и тестировать код. Spyder предлагает просмотр и редактирование переменных с помощью GUI, динамическую интроспекцию кода, нахождение ошибок на лету и многое другое. Также, по необходимости, можно интегрировать Anaconda с другими Python IDE, включая PyCharm и Atom.
  • VS Code  — это оптимизированный редактор кода с поддержкой таких операций разработки, как отладка, запуск задач и контроль версий.
  • Glueviz  — используется для визуализации многомерных данных в файлах. Он исследует отношения внутри и между связанными наборами данных.
  • Orange 3  — это основанная на компонентах структура интеллектуального анализа данных. Это может быть использовано для визуализации данных и анализа данных. Рабочие процессы в Orange 3 очень интерактивны и предоставляют большой набор инструментов.
  • RStudio — это набор интегрированных инструментов, предназначенных для повышения продуктивности работы с R. Он включает в себя основы R и Notebooks.

Как запустить anaconda Navigator. Скачивание и установка программы

Сначала нужно скачать установщик платформы с официального сайта. На момент написания статьи самая свежая версия программы - 2019.03. Нажмите кнопку Download, а затем выберите операционную систему Linux:

Вы можете скачать программу прямо в браузере или скопировать ссылку для загрузки через wget. Например, для текущей версии команда будет выглядеть так:

wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh

Поскольку это достаточно большой файл, после завершения загрузки желательно проверить его по контрольной суме. Найти контрольную сумму загруженного файла можно командой:

sha256sum Anaconda3-2019.03-Linux-x86_64.sh

Затем её нужно сравнить с сумой, указанной на этой странице для вашей версии программы. Если полученные значения совпадают, значит всё правильно.

Далее запустите полученный скрипт:

На первом шаге установки нажмите Enter , затем наберите yes, чтобы принять лицензионное соглашение:

Далее нужно выбрать папку, куда будет установлена программа:

Затем пойдёт установка Anaconda 3 Ubuntu. Процесс установки займёт некоторое время.

В конце установки программа предложит изменить ~/.bashrc таким образом, чтобы Сonda запускалась автоматически при запуске терминала. Если вы не сделали это во время установки, то это можно выполнить потом командой:

conda init bash

Затем выполните следующую команду, чтобы система перечитала настройки:

source ~/.bashrc

Теперь вы можете проверить, всё ли работает, выполнив такую команду:

conda info

На этом установка Anaconda Ubuntu завершена.

Anaconda Navigator не запускается. Как починить anaconda?

Не запускается анаконда навигатор, а при запуске jupyter lab не хочет создавать ноутбуки.
пробовал обновить и установить PyQt, не прокатило, как исправить?(пробовал переустанавливать тоже не помогло)
anaconda-navigator
Traceback (most recent call last):
File "C:\Users\Ayanami\anaconda3\lib\site-packages\qtpy\__init__.py", line 204, in
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Ayanami\anaconda3\Scripts\anaconda-navigator-script.py", line 6, in
from anaconda_navigator.app.main import main
File "C:\Users\Ayanami\anaconda3\lib\site-packages\anaconda_navigator\app\main.py", line 22, in
from anaconda_navigator.utils.conda import is_conda_available
File "C:\Users\Ayanami\anaconda3\lib\site-packages\anaconda_navigator\utils\__init__.py", line 15, in
from qtpy.QtGui import QIcon
File "C:\Users\Ayanami\anaconda3\lib\site-packages\qtpy\__init__.py", line 210, in
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
(base) C:\Users\Ayanami>pip install pyqt5
Collecting pyqt5
Downloading PyQt5-5.15.1-5.15.1-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (59.4 MB)
|████████████████████████████████| 59.4 MB 6.4 MB/s
Collecting PyQt5-sip=12.8
Downloading PyQt5_sip-12.8.1-cp37-cp37m-win_amd64.whl (62 kB)
|████████████████████████████████| 62 kB 4.8 MB/s
Installing collected packages: PyQt5-sip, pyqt5
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
spyder 4.1.5 requires pyqtwebengine= "3", which is not installed.
spyder 4.1.5 requires pyqt5= "3", but you'll have pyqt5 5.15.1 which is incompatible.

Conda install. Getting started with conda

Conda is a powerful package manager and environment manager that you use with command line commands at the Anaconda Prompt for Windows, or in a terminal window for macOS or Linux.

This 20-minute guide to getting started with conda lets you try out the major features of conda. You should understand how conda works when you finish this guide.

SEE ALSO:, a graphical user interface that lets you use conda in a web-like interface without having to enter manual commands. Compare the Getting started guides for each to see which program you prefer.

Contents

    on Windows, macOS, or Linux. 2 MINUTES

    . Verify that Anaconda is installed and check that conda is updated to the current version. 3 MINUTES

    . Create environments and move easily between them. 5 MINUTES

    . Create an environment that has a different version of Python. 5 MINUTES

    . Find packages available for you to install. Install packages. 5 MINUTES

TOTAL TIME: 20 MINUTES

Starting conda

Windows

    From the Start menu, search for and open "Anaconda Prompt."

On Windows, all commands below are typed into the Anaconda Prompt window.

MacOS

    Open Launchpad, then click the terminal icon.

On macOS, all commands below are typed into the terminal window.

Linux

    Open a terminal window.

On Linux, all commands below are typed into the terminal window.

Managing conda

Conda displays the number of the version that you have installed. You do not need to navigate to the Anaconda directory.

EXAMPLE: conda 4.7.12

Note

If you get an error message, make sure you closed and re-opened the terminal window after installing, or do it now. Then verify that you are logged into the same user account that you used to install Anaconda or Miniconda.

Update conda to the current version. Type the following:

Conda compares versions and then displays what is available to install.

If a newer version of conda is available, type y to update:

Proceed (/n)? y

Tip

We recommend that you always keep conda updated to the latest version.

Managing environments

Conda allows you to create separate environments containing files, packages, and their dependencies that will not interact with other environments.

When you begin using conda, you already have a default environment named base . You don't want to put programs into your base environment, though. Create separate environments to keep your programs isolated from each other.

    Create a new environment and install a package in it.

    We will name the environment snowflakes and install the package BioPython. At the Anaconda Prompt or in your terminal window, type the following:

    Conda checks to see what additional packages ("dependencies") BioPython will need, and asks if you want to proceed:

    Proceed (/n)? y

    Type "y" and press Enter to proceed.

    To use, or "activate" the new environment, type the following:

    Windows: conda activate snowflakes

    macOS and Linux: conda activate snowflakes

For conda versions prior to 4.6, type:

    Windows: activate snowflakes

    macOS and Linux: source activate snowflakes

Now that you are in your snowflakes environment, any conda commands you type will go to that environment until you deactivate it.

To see a list of all your environments, type:

A list of environments appears, similar to the following:

Tip

The active environment is the one with an asterisk (*).

Change your current environment back to the default (base): conda activate

Tip

When the environment is deactivated, its name is no longer shown in your prompt, and the asterisk (*) returns to base. To verify, you can repeat the conda info --envs command.

Anaconda python установка. Installation ¶

    Go to your Downloads folder and double-click the installer to launch. To prevent permission errors, do not launch the installer from the.

    Note

    If you encounter issues during installation, temporarily disable your anti-virus software during install, then re-enable it after the installation concludes. If you installed for all users, uninstall Anaconda and re-install it for your user only.

    Click Next .

    Read the licensing terms and click I Agree .

    It is recommended that you install for Just Me , which will install Anaconda Distribution to just the current user account. Only select an install for All Users if you need to install for all users’ accounts on the computer (which requires Windows Administrator privileges).

    Click Next .

    Select a destination folder to install Anaconda and click Next . Install Anaconda to a directory path that does not contain spaces or unicode characters. For more information on destination folders, see the.

    Caution

    Do not install as Administrator unless admin privileges are required.

    Choose whether to add Anaconda to your PATH environment variable or register Anaconda as your default Python. We don’t recommend adding Anaconda to your PATH environment variable, since this can interfere with other software. Unless you plan on installing and running multiple versions of Anaconda or multiple versions of Python, accept the default and leave this box checked. Instead, use Anaconda software by opening Anaconda Navigator or the Anaconda Prompt from the Start Menu.

    Note

    As of Anaconda Distribution 2022.05 , the option to add Anaconda to the PATH environment variable during an All Users installation has been disabled. This was done to address a security exploit . You can still add Anaconda to the PATH environment variable during a Just Me installation.

    Click Install . If you want to watch the packages Anaconda is installing, click Show Details.

    Click Next .

    If you wish to read more about Anaconda.org and how to get started with Anaconda, check the boxes “Anaconda Distribution Tutorial” and “Learn more about Anaconda”. Click the Finish button.

Anaconda Navigator. Getting started with Navigator ¶

Anaconda Navigator is a graphical user interface for the conda package and environment manager.

This short guide to Navigator will have you navigating the powerful conda program in a web-like interface without having to learn command line commands.

SEE ALSO:to learn how to use conda. Compare the Getting started guides for each to see which program you prefer.

Contents

  • on Windows, macOS, or Linux. 1 MINUTE
  • . Verify that Anaconda is installed and check that Navigator is updated to the current version. 1 MINUTE
  • . Filter the tiles on the Navigator home page. 1 MINUTE
  • . Create environments and move easily between them. 3 MINUTES
  • . Create an environment that has a different version of Python. 2 MINUTES
  • . Find packages available for you to install. Install packages. 3 MINUTES

TOTAL TIME: 11 MINUTES

Starting Navigator

Windows

  • From the Start menu, search for “Anaconda Navigator” and click to open.
  • Or from the Start menu, search for “Anaconda Prompt” and click to open. In Anaconda Prompt, type in anaconda-navigator and press Enter to open Navigator.

MacOS

  • Open Launchpad, then click the Anaconda-Navigator icon.
  • Or open Launchpad and click the Terminal icon. Then in terminal, type anaconda-navigator and press Enter to open Navigator.

Linux

  • Open a terminal window, type anaconda-navigator and press Enter to open Navigator.

Managing Navigator

Verify that Anaconda is installed and running on your system.

  • When Navigator starts up, it verifies that Anaconda is installed.
  • If Navigator does not start up, go back to Anaconda installation and make sure you followed all the steps. For more help, see thepage.

    Click Yes to update Navigator to the current version.

    Tip

    Anaconda recommends keeping Navigator updated to the latest version.

    Managing application tiles

    The dropdown contains filters for all applictions, applications that are installed on your computer, applications that are not installed, and applications that have an update available.

    Managing environments

    Navigator uses the conda package and environment manager to create separate environments, containing files, packages, and their dependencies, that will not interact with other environments.

    Create a new environment named myenvironment

      The Create new environment dialog appears.

      Tip

      The active environment is the one with the arrow next to its name.

      Managing Python

      When you create a new environment, Navigator installs the same Python version you used when you downloaded and installed Anaconda. If you want to use a different version of Python—for example Python 3.5—simply create a new environment and specify the version of Python that you want in that environment.

      Create a new environment, named “python35”, that contains Python 3.5:

      1. In Navigator, click the Environments tab, then click Create .
      2. The Create new environment dialog appears.
      3. In the Environment name field, type the descriptive name “python35”.
      4. Make sure the checkbox beside Python is checked.
      5. Select the 3.5 version of Python from the dropdown.
      6. Click Create .
      7. Managing packages

        In this section, you check which packages you have installed, check which are available, and look for a specific package and install it.

          To find a package you have already installed, click the name of the environment you want to search. The installed packages are displayed in the right pane.

          Check to see if a package you have not installed named “beautifulsoup4” is available from the Anaconda repository (must be connected to the Internet). On the Environments tab, in the Search Packages box, type beautifulsoup4 , and from the dropbox to the left of Channels , select All or Not Installed .

          To install the package into the current environment, check the checkbox next to the package name, then click Apply button.

        The newly-installed “beautifulsoup4” package is displayed in the list of installed programs in the current environment.