|
1 | | -## Quick Installation |
2 | | -<details><summary><b>Familiar with Conda already? Do a quick install</b></summary> |
| 1 | +## Introduction |
| 2 | +Thank you for showing interesting in the Beta for Activity Browser 3.0. This release has been a year in the making and we're happy to |
| 3 | +show of the hard work that's been put in and get it to a level where we're happy to show it to the wider public. Most notably AB3 will |
| 4 | +support Brightway25 and multifunctionality. But there have also been a lot of changes to the look and experience of the Activity Browser. |
3 | 5 |
|
4 | | -You can install and start the activity-browser like this: |
5 | | -1. Install [Miniconda](https://docs.anaconda.com/miniconda/#miniconda-latest-installer-links). |
6 | | -2. ```bash |
7 | | - conda create -n ab -c conda-forge activity-browser |
8 | | - conda activate ab |
9 | | - activity-browser |
10 | | - ``` |
11 | | -</details> |
| 6 | +Making so many changes inevitably also comes with creating a lot of bugs. We have tried to catch as may of them as we could, but in the |
| 7 | +end noone is better at finding bugs than you, our users, are. We invite you to install the Activity Browser 3.0 Beta and break it in as |
| 8 | +many ways as you possibly can. As long as you report the bugs you find back to us, so we can fix them. |
12 | 9 |
|
13 | | -## The Anaconda package manager |
14 | | -Skip this step if you already have a working installation of Anaconda or Miniconda, but make sure to keep your |
15 | | -conda installation up-to-date: `conda update -n base conda`. |
| 10 | +Thank you for your help, and enjoy the new Activity Browser! |
16 | 11 |
|
17 | | -You need the python package manager [Anaconda](https://anaconda.org) to install Activity Browser. |
18 | | -Anaconda is somewhat like an app-store for python programs. |
19 | | -You can install the full [Anaconda user interface (navigator)](https://www.anaconda.com/download/success) |
20 | | -or just the minimal command-line installer, |
21 | | -[Miniconda](https://docs.anaconda.com/miniconda/#miniconda-latest-installer-links). |
22 | | -If needed, see also the |
23 | | -[conda user guide](https://docs.conda.io/projects/conda/en/latest/user-guide/index.html) |
24 | | -or the |
25 | | -[Conda cheat sheet](https://docs.conda.io/projects/conda/en/latest/_downloads/843d9e0198f2a193a3484886fa28163c/conda-cheatsheet.pdf). |
| 12 | +> [!IMPORTANT] |
| 13 | +> This is a **beta installation**. As always use of the Activity Browser is **at your own risk**, but take extra care with this installation. Back-up critical projects before opening them. |
26 | 14 |
|
27 | | -- Install the Anaconda manager of your choice from the above options. |
28 | | -- Start `Anaconda Prompt` from the start menu. |
29 | | - - This is a terminal window with `conda`, you will need this prompt for all next steps. |
| 15 | +## Distributions on PyPI and Anaconda |
| 16 | +The Activity Browser 3 Beta is available both on [PyPI]() and [Anaconda](). Because not all necessary libraries are available on Anaconda |
| 17 | +right now you need to do an extra `pip install` inside your Conda environment. |
30 | 18 |
|
31 | | -## Add the conda-forge channel |
32 | | -Open an Anaconda prompt window and type the following (and `Enter`): |
33 | | -```bash |
34 | | -conda config --prepend channels conda-forge |
| 19 | +#### Quick-Install PyPI |
| 20 | +``` |
| 21 | +pip install activity-browser |
35 | 22 | ``` |
36 | 23 |
|
37 | | -<details><summary><b>More information about this step</b></summary> |
| 24 | +#### Quick-Install Anaconda |
| 25 | +``` |
| 26 | +conda create -n ab_beta -c conda-forge lca::activity-browser |
| 27 | +conda activate ab_beta |
| 28 | +pip install PySide6 |
| 29 | +``` |
38 | 30 |
|
39 | | -Activity Browser has many dependencies that are managed by |
40 | | -[conda-forge](https://conda.io/docs/user-guide/tasks/manage-channels.html). |
41 | | -By adding the channel you can install python packages from there. |
| 31 | +For more elaborate installing instructions check out the page below for both [installing from PyPI](#installing-from-pypi) and [installing from Anaconda](#installing-from-anaconda). |
42 | 32 |
|
43 | | -The line above means: |
44 | | -- `conda`: a command for conda |
45 | | -- `config`: change something in the configuration (settings) of `conda` |
46 | | -- `--prepend channels`: in the channels from which conda can install things, add to the top (prepend) |
47 | | -- `conda-forge`: the channel name |
48 | | -</details> |
| 33 | +## Installing from PyPI |
| 34 | +Installing from the Python Package Index (PyPI) can be done using the standard `pip` command. We strongly recommended installing the |
| 35 | +Activity Browser into a separate [virtual environment](https://realpython.com/python-virtual-environments-a-primer/) |
49 | 36 |
|
50 | | -## Creating an environment and Installing Activity Browser |
51 | | -Next, we create a python environment, in which we install Activity Browser |
| 37 | +First make sure you have Python installed on your PC by entering the following command into your terminal or command prompt. |
52 | 38 |
|
53 | | -```bash |
54 | | -conda create -n ab -c conda-forge activity-browser |
55 | 39 | ``` |
| 40 | +python --version |
| 41 | +``` |
| 42 | +If you get an error please install Python [using their install instructions](https://www.python.org/downloads/). |
56 | 43 |
|
57 | | -> [!NOTE] |
58 | | -> Installing Activity Browser can take some time, this depends on the speed of your internet connection and computer. |
| 44 | +### Creating a virtual environment |
| 45 | +Firstly, create a directory for your virtual environments, such as C:/Users/me/virtualenvs/. Then create a virtual environment in that |
| 46 | +location using the following command: |
| 47 | +``` |
| 48 | +python -m venv C:/Users/me/virtualenvs/ab-beta |
| 49 | +``` |
| 50 | +Afterwards, you need to activate the virtual environment, which differs between operating systems and shells. Using Window Command Prompt |
| 51 | +activate the environment using this command: |
| 52 | +``` |
| 53 | +C:\Users\me\virtualenvs\ab-beta\Scripts\activate.bat |
| 54 | +``` |
| 55 | +For a full overview of activation commands, [check out the documentation here](https://docs.python.org/3/library/venv.html#how-venvs-work) |
59 | 56 |
|
60 | | -<details><summary><b>More information about this step</b></summary> |
| 57 | +### Activity Browser Beta installation |
| 58 | +After creating the virtual environment, installing the Beta should be as simple as using the following command: |
| 59 | +``` |
| 60 | +pip install activity-browser |
| 61 | +``` |
61 | 62 |
|
62 | | -We create a separate environment, this allows Activity Browser to work with the specific versions of other libraries |
63 | | -it needs without interfering with other python packages. |
| 63 | +### Launching the Activity Browser |
| 64 | +The Activity Browser can then be launched like so: |
| 65 | +``` |
| 66 | +activity-browser |
| 67 | +``` |
64 | 68 |
|
65 | | -The line above means: |
66 | | -- `conda`: a command for conda |
67 | | -- `create -n ab`: create a new e**n**vironment (`-n`) with the name `ab` |
68 | | -- `-c conda-forge`: from the **c**hannel (`-c`) `conda-forge` |
69 | | -- `activity-browser`: install the package `activity-browser` |
| 69 | +## Installing from Anaconda |
| 70 | +First make sure you have Conda installed |
70 | 71 |
|
71 | | -You can have as many environments as you like, you can also install different versions of Activity Browser |
72 | | -in different environments, for example for different [plugins](Plugins), or just for using different version of |
73 | | -Activity Browser. |
| 72 | +``` |
| 73 | +conda --version |
| 74 | +``` |
74 | 75 |
|
75 | | -All environments will have access to the same projects and databases in Activity Browser. |
| 76 | +If you get an error, please download and install miniconda from anaconda.com https://www.anaconda.com/download/success |
76 | 77 |
|
77 | | -</details> |
| 78 | +### Activity Browser Beta installation |
| 79 | +Next we're going to create a new environment for the Activity Browser Beta release. |
78 | 80 |
|
79 | | -## Activating and running Activity Browser |
80 | | -To run Activity Browser, you need to activate your environment with |
81 | | -```bash |
82 | | -conda activate ab |
83 | 81 | ``` |
84 | | - |
85 | | -And then run activity browser |
86 | | -with. |
87 | | -```bash |
88 | | -activity-browser |
| 82 | +conda create -n ab_beta -c conda-forge lca::activity-browser |
89 | 83 | ``` |
90 | 84 |
|
91 | | -Congratulations! You've started Activity Browser for the first time! |
| 85 | +This will go through a few steps, some of which like `solving environment` may take a while. After installation has finished you can |
| 86 | +activate the environment like so: |
92 | 87 |
|
93 | | -Every time you want to start Activity Browser, you need to start an anaconda prompt |
94 | | -and do `conda activate ab` and then `activity browser`. |
| 88 | +``` |
| 89 | +conda activate ab_beta |
| 90 | +``` |
95 | 91 |
|
96 | | -## Updating Activity Browser |
97 | | -We recommend to regularly update Activity Browser to receive new features & bugfixes. |
98 | | -These commands will update the Activity Browser and all of its dependencies in the conda environment called `ab`. |
| 92 | +### PySide6 installation |
| 93 | +We will need to install `PySide6` from a different source, as the fully functional version is not available on anaconda. |
99 | 94 |
|
100 | | -```bash |
101 | | -conda activate ab |
102 | | -conda update activity-browser |
| 95 | +``` |
| 96 | +pip install PySide6 |
103 | 97 | ``` |
104 | 98 |
|
105 | | -> [!IMPORTANT] |
106 | | -> If you currently have a version <u>below</u> `2.10.0`, please consult |
107 | | -> [this guide](https://github.com/LCA-ActivityBrowser/activity-browser/discussions/1049) |
108 | | -> to update. |
| 99 | +### Launching the Activity Browser |
| 100 | +Launch the Activity Browser like you would normally |
| 101 | +``` |
| 102 | +activity-browser |
| 103 | +``` |
0 commit comments