- Установка Anaconda в ОС Linux
- Требования
- Установка
- Как установить Anaconda на Manjaro 20
- Как установить Anaconda на Manjaro 20
- Установите Anaconda на Manjaro 20 Nibia
- Шаг 1. Перед тем, как запустить руководство, приведенное ниже, убедитесь, что наша система обновлена:
- Шаг 2. Установка необходимой зависимости Anaconda.
- Шаг 3. Установка Anaconda на Manjaro 20.
- Шаг 3. Проверьте установку Anaconda.
- How to Install Anaconda Python on Manjaro GNU/Linux
- Anaconda Python Manjaro Linux Installation Guide
- 1. Launching Console
- Getting started with AnacondaВ¶
- Your first Python program: Hello, Anaconda!В¶
- Open NavigatorВ¶
- Run Python in Spyder IDE (integrated development environment)В¶
- Close SpyderВ¶
- Run Python in a Jupyter NotebookВ¶
- Close Jupyter NotebookВ¶
- Close NavigatorВ¶
- Write a Python program using Anaconda Prompt or terminalВ¶
- Open Anaconda PromptВ¶
- Start PythonВ¶
- Write a Python programВ¶
- Exit PythonВ¶
- Optional: Launch Spyder or Jupyter Notebook from the command lineВ¶
- Arch Linux User Repository
- Search Criteria
- Package Details: anaconda 2021.05-1
- Package Actions
- Dependencies (0)
- Required by (0)
- Sources (1)
- Pinned Comments
- petronny commented on 2020-08-19 10:36
- Latest Comments
- cabal commented on 2021-10-10 12:22
- x3oo commented on 2021-08-22 18:01
- x3oo commented on 2021-08-20 13:42
- Wings-Fantasy commented on 2021-06-09 14:27
- khampf commented on 2021-05-20 14:05
- Maxnet commented on 2021-04-23 07:38
- kunzaatko commented on 2020-12-10 22:34
- Anurta commented on 2020-09-18 05:02
- DavidMLS commented on 2020-08-22 16:06
- petronny commented on 2020-08-19 10:36
Установка Anaconda в ОС Linux
Требования
Для использования GUI-пакетов в Linux сперва нужно установить следующие расширения для Qt:
Debian | apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6libxtst6 |
RedHat | yum install libXcomposite libXcursor libXi libXtst libXrandralsa-lib mesa-libEGL libXdamage mesa-libGL libXScrnSaver |
ArchLinux | pacman -Sy libxau libxi libxss libxtst libxcursor libxcompositelibxdamage libxfixes libxrandr libxrender mesa-libgl alsa-liblibglvnd |
OpenSuse/SLES | zypper install libXcomposite1 libXi6 libXext6 libXau6 libX11-6libXrandr2 libXrender1 libXss1 libXtst6 libXdamage1 libXcursor1libxcb1 libasound2 libX11-xcb1 Mesa-libGL1 Mesa-libEGL1 |
Gentoo | emerge x11-libs/libXau x11-libs/libxcb x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes x11-libs/libXrender x11-libs/libXix11-libs/libXcomposite x11-libs/libXrandr x11-libs/libXcursor x11-libs/libXdamage x11-libs/libXScrnSaver x11-libs/libXtst media-libs/alsa-lib media-libs/mesa |
Установка
- Загрузите установщик Anaconda для Linux.
- РЕКОМЕНДУЕТСЯ: проверить целостность данных с SHA-256.
Откройте терминал и запустите следующий код:
Введите следующее для установки Anaconda для Python 3.7:
ИЛИ введите следующее для Python 2.7:
Применяйте команду bash вне зависимости от того, используете ли вы командную оболочку Bash или нет.
Если скачали файл не в папку «Загрузки» (Downloads), замените
/Downloads/ на путь к файлу в вашей системе.
Рекомендуется выбрать стандартный путь установки. Не выбирайте путь как /usr для установки Anaconda/Miniconda.
Если выбрать «нет» (no), тогда conda не изменит скрипты оболочки. Для запуска уже после установки, в первую очередь выполните sourse
, а затем — conda init .
/.bashrc .
Чтобы настроить, должна ли активироваться базовая среда для каждой сессии работы с терминалом, запустите conda config —set auto_activate_base False of True . Чтобы запускать conda в любом месте без активации базовой среды по умолчанию, используйте conda config —set auto_activate_base False . Это сработает только в том случае, если предварительно запускалась conda init .
conda init доступна в версиях conda 4.6.12 и старше.
Если установить несколько версий Anaconda, система будет обращаться к самой актуальной, если путь по умолчанию не был изменен.
Источник
Как установить Anaconda на Manjaro 20
Как установить Anaconda на Manjaro 20
В этом руководстве мы покажем вам, как установить Anaconda на Manjaro 20. Для тех из вас, кто не знал, Anaconda — это популярная платформа Python / R для науки о данных и машинного обучения, используемая для крупномасштабной обработки данных и прогнозной аналитики. , и научные вычисления. Anaconda доступна в четырех редакциях: индивидуальная версия (с открытым исходным кодом), коммерческая версия, групповая версия и корпоративная версия. Индивидуальная версия Anaconda — самая популярная в мире платформа распространения Python с более чем 20 миллионами пользователей по всему миру.
В этой статье предполагается, что у вас есть хотя бы базовые знания Linux, вы знаете, как использовать оболочку, и, что наиболее важно, вы размещаете свой сайт на собственном VPS. Установка довольно проста и предполагает, что вы работаете с учетной записью root, в противном случае вам может потребоваться добавить ‘ sudo ‘ к командам для получения привилегий root. Я покажу вам пошаговую установку Anaconda на Manjaro 20 ( Nibia ).
Установите Anaconda на Manjaro 20 Nibia
Шаг 1. Перед тем, как запустить руководство, приведенное ниже, убедитесь, что наша система обновлена:
Шаг 2. Установка необходимой зависимости Anaconda.
Вам нужно будет установить следующие расширенные зависимости:
Шаг 3. Установка Anaconda на Manjaro 20.
Теперь мы загружаем последнюю версию установщика Anaconda для Linux с официальной страницы загрузки Anaconda :
Перейдите в папку, в которую вы загрузили установщик Anaconda, и проверьте целостность загруженного файла с помощью SHA-256:
Сравните его с официальными хэшами для Anaconda . Если хеш-значение локально загруженного файла установщика совпадает с официальным хешем, все готово.
Теперь запустите установку Anaconda, используя следующую команду:
Теперь продолжайте нажимать Enter, пока он не спросит:
Чтобы активировать установку Anaconda, вы можете либо закрыть и снова открыть оболочку, либо загрузить новую переменную среды PATH в текущий сеанс оболочки, набрав:
Шаг 3. Проверьте установку Anaconda.
Чтобы проверить установку Anaconda из командной строки, выполните следующую команду:
Поздравляю! Вы успешно установили Anaconda . Благодарим за использование этого руководства для установки последней версии Anaconda в системе Manjaro. Для получения дополнительной помощи или полезной информации мы рекомендуем вам посетить официальный сайт Anaconda .
Источник
How to Install Anaconda Python on Manjaro GNU/Linux
Anaconda Python Manjaro Linux Installation Guide
You are Welcome! The Tutorial Shows You Step-by-Step How to Install Anaconda Python 2/3 in Manjaro GNU/Linux Desktop.
And Anaconda Python for Manjaro Linux is a Free, easy-to-install Package Manager, Environment Manager and Python Distribution with a Collection of 1,000+ open source packages with free community support.
Furthermore, Anaconda includes the most Awesome Scientific Packages:
- NumPy : N-dimensional array for numerical computation
- SciPy : Scientific computing library for Python
- Matplotlib : 2D Plotting library for Python
- Pandas : Powerful Python data structures
and data analysis toolkit - Seaborn : Statistical graphics library for Python
- Bokeh : Interactive web visualization library
- Scikit-Learn : Python modules for machine learning and data mining
- NLTK : Natural language toolkit
- Jupyter Notebook : Web app that allows you to create and share
documents that contain live code, equations,
visualizations and explanatory text - R essentials : R with 80+ of the most used R packages for data science
Finally, this guide includes instructions on How to Getting-Started with Anaconda Python on Manjaro Linux Linux.
1. Launching Console
Open a Shell Terminal emulator window
(Press “Enter” to Execute Commands)
Источник
Getting started with AnacondaВ¶
Anaconda Individual Edition contains conda and Anaconda Navigator, as well as Python and hundreds of scientific packages . When you installed Anaconda, you installed all these too.
Conda works on your command line interface such as Anaconda Prompt on Windows and terminal on macOS and Linux.
Navigator is a desktop graphical user interface that allows you to launch applications and easily manage conda packages, environments, and channels without using command-line commands.
You can try both conda and Navigator to see which is right for you to manage your packages and environments. You can even switch between them, and the work you do with one can be viewed in the other.
Try this simple programming exercise, with Navigator and the command line , to help you decide which approach is right for you.
When you’re done, see What’s next? .
Your first Python program: Hello, Anaconda!В¶
Use Anaconda Navigator to launch an application. Then, create and run a simple Python program with Spyder and Jupyter Notebook.
Open NavigatorВ¶
Choose the instructions for your operating system.
Windows
From the Start menu, click the Anaconda Navigator desktop app.
macOS
Open Launchpad, then click the Anaconda Navigator icon.
Linux
Open a terminal window and type anaconda-navigator .
Run Python in Spyder IDE (integrated development environment)В¶
Navigator’s Home screen displays several applications for you to choose from. For more information, see links at the bottom of this page.
On Navigator’s Home tab, in the Applications pane on the right, scroll to the Spyder tile and click the Install button to install Spyder.
If you already have Spyder installed, you can jump right to the Launch step.
Launch Spyder by clicking Spyder’s Launch button.
In the new file on the left, delete any placeholder text, then type or copy/paste print(«Hello Anaconda») .
In the top menu, click File — Save As and name your new program hello.py .
Run your new program by clicking the triangle Run button.
You can see your program’s output in the bottom right Console pane.
Close SpyderВ¶
From Spyder’s top menu bar, select Spyder — Quit Spyder (In macOS, select Python — Quit Spyder).
Run Python in a Jupyter NotebookВ¶
On Navigator’s Home tab, in the Applications pane on the right, scroll to the Jupyter Notebook tile and click the Install button to install Jupyter Notebook.
If you already have Jupyter Notebook installed, you can jump right to the Launch step.
Launch Jupyter Notebook by clicking Jupyter Notebook’s Launch button.
This will launch a new browser window (or a new tab) showing the Notebook Dashboard.
On the top of the right hand side, there is a dropdown menu labeled “New”. Create a new Notebook with the Python version you installed.
Rename your Notebook. Either click on the current name and edit it or find rename under File in the top menu bar. You can name it to whatever you’d like, but for this example we’ll use MyFirstAnacondaNotebook.
In the first line of the Notebook, type or copy/paste print(«Hello Anaconda») .
Save your Notebook by either clicking the save and checkpoint icon or select File — Save and Checkpoint in the top menu.
Run your new program by clicking the Run button or selecting Cell — Run All from the top menu.
Close Jupyter NotebookВ¶
- From Jupyter Notebooks top menu bar, select File — Close and Halt.
- Click the Quit button at the upper right of the Notebook Dashboard and close the window or tab.
Close NavigatorВ¶
From Navigator’s top menu bar, select Anaconda Navigator — Quit Anaconda-Navigator.
Write a Python program using Anaconda Prompt or terminalВ¶
Open Anaconda PromptВ¶
Choose the instructions for your operating system.
Windows
From the Start menu, search for and open “Anaconda Prompt”:
macOS
Open Launchpad, then click the terminal icon.
Linux
Open a terminal window.
Start PythonВ¶
At Anaconda Prompt (terminal on Linux or macOS), type python and press Enter.
The >>> means you are in Python.
Write a Python programВ¶
At the >>> , type print(«Hello Anaconda!») and press Enter.
When you press enter, your program runs. The words “Hello Anaconda!” print to the screen. You’re programming in Python!
Exit PythonВ¶
On Windows, press CTRL-Z and press Enter. On macOS or Linux type exit() and press Enter.
Optional: Launch Spyder or Jupyter Notebook from the command lineВ¶
- At the Anaconda Prompt (terminal on Linux or macOS), type spyder and press Enter. Spyder should start up just like it did when you launched it from Anaconda Navigator.
- Close Spyder the same way you did in the previous exercise.
- At the Anaconda Prompt (terminal on Linux or macOS), type jupyter-notebook and press Enter.
Jupyter Notebook should start up just like it did when you launched it from Anaconda Navigator. Close it the same way you did in the previous exercise.
Источник
Arch Linux User Repository
Search Criteria
Package Details: anaconda 2021.05-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/anaconda.git (read-only, click to copy) |
---|---|
Package Base: | anaconda |
Description: | Completely free enterprise-ready Python distribution for large-scale data processing, predictive analytics, and scientific computing. |
Upstream URL: | https://www.anaconda.com/ |
Licenses: | BSD |
Submitter: | flexiondotorg |
Maintainer: | petronny |
Last Packager: | petronny |
Votes: | 95 |
Popularity: | 0.63 |
First Submitted: | 2013-06-24 14:51 |
Last Updated: | 2021-05-20 06:27 |
Dependencies (0)
Required by (0)
Sources (1)
Pinned Comments
petronny commented on 2020-08-19 10:36
This PKGBUILD is tested with extra-x86_64-build .
If you get any problem when build this package, you can try the prebuilt binary from the arch4edu repository.
It’s also built with extra-x86_64-build .
Latest Comments
cabal commented on 2021-10-10 12:22
I got an error in creating an interpreter while using Pycharm: CondaError: Unable to create prefix directory ‘/opt/anaconda/envs/pythonProject’
I was able to solve it by choosing a folder in my home directory. I hope it helps somebody with same issue.
x3oo commented on 2021-08-22 18:01
my conda environment is spewing a lot of error when i try to run sharpy. i am susspecting my conda environment is installed wrongly. would somebody mind to explain the pkgbuild to me so i can reinstall in another way?
x3oo commented on 2021-08-20 13:42
(1/1) checking available disk space [####################] 100% warning: could not get file information for opt/anaconda/conda-meta/conda-4.10.1-py38h06a4308_1.json warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda-4.10.1-py3.8.egg-info/ warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda-4.10.1-py3.8.egg-info/PKG-INFO warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda-4.10.1-py3.8.egg-info/SOURCES.txt warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda-4.10.1-py3.8.egg-info/dependency_links.txt warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda-4.10.1-py3.8.egg-info/entry_points.txt warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda-4.10.1-py3.8.egg-info/not-zip-safe warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda-4.10.1-py3.8.egg-info/requires.txt warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda-4.10.1-py3.8.egg-info/top_level.txt warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda/_vendor/tqdm/pycache/_version.cpython-38.pyc warning: could not get file information for opt/anaconda/lib/python3.8/site-packages/conda/_vendor/tqdm/_version.py
get this warning with pacaur -S anaconda.
ls -l /opt/anaconda/lib/python3.8/site-packages/conda-4.10.1-py3.8.egg-info/ total 16 -rw-rw-r— 2 root root 1 Aug 20 15:20 dependency_links.txt -rw-rw-r— 2 root root 51 Aug 20 15:20 entry_points.txt -rw-rw-r— 2 root root 1 Aug 20 15:20 not-zip-safe -rw-rw-r— 2 root root 1347 Aug 20 15:20 PKG-INFO -rw-rw-r— 2 root root 143 Aug 20 15:20 requires.txt -rw-rw-r— 2 root root 8219 Aug 20 15:20 SOURCES.txt -rw-rw-r— 2 root root 26 Aug 20 15:20 top_level.txt
Wings-Fantasy commented on 2021-06-09 14:27
First return to the warning:
/opt/anaconda/lib/python3.8/site-packages/binstar_client/requests_ext.py:124:
SyntaxWarning: «is» with a literal. Did you mean «==»?
if mode is 0:
/opt/anaconda/lib/python3.8/site-packages/binstar_client/requests_ext.py:130:
SyntaxWarning: «is» with a literal. Did you mean «==»?
elif mode is 2:
Then it returned the expected result
how to solve this problem?
khampf commented on 2021-05-20 14:05
anaconda 2021.05 does not seem compatible with jupyter notebooks from previous versions.
Maxnet commented on 2021-04-23 07:38
Hello, thanks for this package. I just installed it on Manjaro-KDE and had a little bug: Anaconda-navigator did not show its gui up, before I installed the dependencies from here: https://docs.anaconda.com/anaconda/install/linux/ You may include the dependencies here, maybe as optional?
kunzaatko commented on 2020-12-10 22:34
After installing, the clear command did not work. To reiterate the /opt/anaconda/bin/clear did not work. It returned with
I tried in zsh , bash and in fish . After deleting the file /opt/anaconda/bin/clear it works as normal. Could this possibly be a problem with the installation and should I also check other commands, that are now deprecated in the path by the anaconda binaries? Thank you!
Anurta commented on 2020-09-18 05:02
Im using Arch rolling release and this was my fix:
Went to Files (clicked «show hidden»)and opened: /home/anaconda3/lib/python3.8/site-packages/anaconda_navigator/api/external_apps/vscode.py
Went down to lines 168,169,170, and deleted all of their contents, saved and exited..
Works fine now! Reinstall, ‘not required’. (I would make a copy of «vscode.py» and put it in documents, before changing anything, that way you can just delete the modified version if it doesn’t work, then replace it with the original copy.) .
168= if DISTRO_NAME in [‘ubuntu’, ‘debian’]:
169= -pkg-type = ‘deb’
DavidMLS commented on 2020-08-22 16:06
As I was having quite a few problems with this what I did was to use a modified version of PKGBUILD since it was having problems with installing in /opt/ and instead installed it to
/bin. I also had to change the owner and group of the anaconda folder to myself.
petronny commented on 2020-08-19 10:36
This PKGBUILD is tested with extra-x86_64-build .
If you get any problem when build this package, you can try the prebuilt binary from the arch4edu repository.
It’s also built with extra-x86_64-build .
Copyright © 2004-2021 aurweb Development Team.
AUR packages are user produced content. Any use of the provided files is at your own risk.
Источник