Я пытаюсь установить miniconda
Python 2.7 на человечности 12.04. Я уже записал это:
if ! [ -f ~/.bash_profile ]; then touch ~/.bash_profile; fi
if ! [ -f ~/.bashrc ]; then touch ~/.bashrc; fi
if ! grep -q "source ~/.bashrc" ~/.bash_profile; then echo 'if [ -f ~/.bashrc ]; then source ~/.bashrc; fi' >> ~/.bash_profile; fi
затем я использую:
bash Miniconda-*.sh
но процесс запускается и никогда не заканчивается. Я не знаю, как зафиксировать это.
Используйте это простые шаги в терминале:
cd
для 64-разрядного:
wget -c http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
для 32-разрядного
wget -c http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86.sh
я теперь обращусь к 64-разрядной версии.
chmod +x Miniconda-latest-Linux-x86_64.sh
./Miniconda-latest-Linux-x86_64.sh
следующие шаги необходимо пройти:
Welcome to Miniconda 3.10.1 (by Continuum Analytics, Inc.)
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
Входят
читает лицензию (или нет;)) и
Q
тогда тип yes
Do you approve the license terms? [yes|no]
[no] >>> yes
принимает путь или входит, новый путь
Miniconda will now be installed into this location:
/home/<your_username>/miniconda
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/<your_username>/miniconda] >>>
Вводят тип yes
Prepending PATH=/home/<your_username>/miniconda/bin to PATH in /home/<your_username>/.bashrc
A backup will be made to: /home/<your_username>/.bashrc-miniconda.bak
For this change to become active, you have to open a new terminal.
Thank you for installing Miniconda!
PREFIX=/home/<your_username>/miniconda
installing: python-2.7.9-3 ...
installing: conda-env-2.1.4-py27_0 ...
installing: openssl-1.0.1k-1 ...
installing: pycosat-0.6.1-py27_0 ...
installing: pyyaml-3.11-py27_0 ...
installing: readline-6.2-2 ...
installing: requests-2.6.0-py27_0 ...
installing: sqlite-3.8.4.1-1 ...
installing: system-5.8-2 ...
installing: tk-8.5.18-0 ...
installing: yaml-0.1.4-0 ...
installing: zlib-1.2.8-0 ...
installing: conda-3.10.1-py27_0 ...
Python 2.7.9 :: Continuum Analytics, Inc.
creating default environment...
installation finished.
Do you wish the installer to prepend the Miniconda install location
to PATH in your /home/<your_username>/.bashrc ? [yes|no]
[no] >>>
Thats все. Близко Ваш терминал и перезапуск или source /home/<your_username>/.bashrc
Запускаются conda
, и Вы будете видеть что-то вроде этого:
$ conda
usage: conda [-h] [-V] command ...
conda is a tool for managing and deploying applications, environments and
packages.
positional arguments:
[...]
Теперь можно запустить с, например, установка numpy
:
conda install numpy