Skip to content
Snippets Groups Projects
Commit c6c4db28 authored by bisig daniel - dbisig's avatar bisig daniel - dbisig
Browse files

more docs

parent 3e00a839
No related branches found
No related tags found
No related merge requests found
File added
Anaconda - Commands:
Environments
List Environments: conda env list
Activate Environment: conda activate ENV_NAME
Create Environment: conda create --name ENV_NAME python=PYTHON_VERSION
Delete Environment: conda env remove --name ENV_NAME
Export Environment: conda env export -n ENV_NAME -f FILE_NAME.yml --no-builds
Create Environment from Exported Environment: conda env create -f FILE_NAME.yml
Clone exist Environment: conda create --clone ORIG_ENV_NAME --name NEW_ENV_NAME
Environment Revisions
Show all revisions of an Environment: conda list --revisions
Revert to previous revision: conda install --revision REVISION_NUMBER
Channels
List Channels: conda config --show channels
Add Channel (new channel has highest priority): conda config --add channels CHANNEL_NAME
Add Channel (new channel has lowest priority): conda config --append channels CHANNEL_NAME
Remove Channel: conda config --remove channels CHANNEL_NAME
Info on Channels:
https://conda-forge.org/docs/user/tipsandtricks.html#using-multiple-channels
Packages
List installed Packages: conda list
Install Package: conda install PACKAGE_NAME
Update Package: conda update PACKAGE_NAME
Remove Package: conda remove PACKAGE_NAME
Anaconda - Issues:
>> Can't connect to HTTPS URL because the SSL module is not available
Copy the following files from ~\Anaconda3\Library\bin to ~\Anaconda3\DLLs
libcrypto-1_1-x64.*
libssl-1_1-x64.*
\ No newline at end of file
......@@ -6,11 +6,11 @@ The AI-Toolbox consists of a variety of software tools that are written in diffe
This section describes the installation of the graphics drivers and programming libraries for NVidia GPUs. It only applies to Windows PCs that are equipped with an NVidia graphics card.
- C++ Compiler
- [C++ Compiler](README_cplusplus_compiler.md)
This section describes the installation of a tool chain for compiling c++ programs on Windows and MacOS. This tool chain is required for installing some Python dependencies.
- Anaconda Environment
- [Anaconda Environment](README_anaconda.md)
This section describes the setup of a Anaconda environment for running most of the tools written that are written in the Python programming language. There exist a few tools that require a different anaconda environment. The installation of the environments for these tools are described together with these tools.
......
# AI-Toolbox - Installers - Anaconda
Many tools in the AI-Toolbox are written in the Python programming language. Python programs, in particular those that make use of machine learning, are notorious for depending on many Python packages in very specific versions. Anaconda is both a package manager that automatically checks for package dependencies and a tool for creating multiple Python programming environments. These virtual environments are isolated from each other and the operating system which helps to avoid conflicts between Python packages. The AI-Toolbox makes use of Anaconda as package manager and to setup its own dedicated Python programming environment.
Anaconda can be downloaded for free from [here](https://www.anaconda.com/download/success). The installer for Anaconda can be executed with default options. Once Anaconda has been installed, the Anaconda terminal becomes available.
Under MacOS, the regular Terminal application is at a same an Anaconda terminal. Accordingly, to start the Anaconda terminal on MacOS, simply start the regular Terminal application. You can verify that this application also behaves as an Anaconda terminal by the presence of the string "(base)" at the beginning of the terminal prompt.
Under Windows, the Anaconda terminal is its own application. You can start it from the Start Menu by typing "Anaconda Prompt".
![Anaconda_Terminal_Windows](docs_media/Anaconda_Terminal_Windows.png)
There exist a number of commands that are specific for the Anaconda terminal. These commands are used for creating or deleting environments, installing packages, or conduct other environment specific activities. All these commands start with "conda" and are then followed by keywords and parameters that are specific for each functionality. Included in this repository are two documents that list the most popular conda commands: the document "conda_commands.txt" is a very brief overview of those conda commands are likely useful to install and use the "Premiere" environment. The document "coonda-cheatsheet.pdf" is a more exhaustive overview over all conda commands.
The main Anaconda environment to run Python programs in the AI-Toolbox is named "Premiere". There are three different approaches for creating this environment: creating the environment by executing a script, creating the environment by importing a previously exported environment, creating the environment by manually typing the required conda commands. Each of these approaches is described here.
## Create the Environment by Executing a Script
The installer script that is specific for MacOS is named "premiere_macos_cpu_install.sh".
## Create the Environment by Importing an Exported Environment
## Create the Environment Manually
# AI-Toolbox - Installers - C++ compiler
A toolchain to compile C++ programs is required for two reasons: to install some Python packages through the pip package manager and to compile those AT-Toolbox tools that make use of the Openframeworks creative coding environment.
The simplest approach to install a C++ compiler toolchain is by installing the software development IDEs provided by Apple for MacOS and by Microsoft for Windows. In the case of Apple, the IDE is XCode, in the case of Windows, it is Visual Studio.
## Installing XCode
An Apple developer account is required to download and install XCode. Such an account can be created for free [here](https://account.apple.com/account?appId=632&returnUrl=https%3A%2F%2Fdeveloper.apple.com%2Fdownload%2F). When your account is active, you can download XCode from [here](https://developer.apple.com/download/applications/).
## Installing Visual Studio
Visual Studio community edition can be used for free and is available for download from [here](https://visualstudio.microsoft.com/vs/community/). When running the installer, make sure to set to chose "Desktop development with C++" under the Workloads tab. To run Visual Studio, it needs to be linked to your Microsoft account. If you don't have such an account, you can create it [here](https://account.microsoft.com/account/Account).
Installers/docs_media/Anaconda_Terminal_Windows.png

5.47 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment