You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Avalanche may work on lower Python versions as well but we don't officially support it, nor recommend it._
23
23
{% endhint %}
24
24
25
25
At the moment, we cannot provide a swift installation experience as some of the dependencies cannot be installed automatically. However, in the sections below we detail how you can install Avalanche **in a matter of minutes** on any platform!
26
26
27
-
## 🐍 Install Avalanche with Anaconda
27
+
## 📦 Installing Avalanche with Pip
28
28
29
-
This is the safest option since it allows you to build an isolated environment for your Avalanche experiments. This means that you'll be able to pin particular versions of your dependencies that may differ from the ones you want to maintain in the rest of your system. This will in turn increase reproducibility of any experiment you may produce.
30
-
31
-
### **On Linux**
29
+
Within an Anaconda environment or not you can install _Avalanche_ also with Pip with the following steps:
32
30
33
-
Assuming you have [Anaconda](https://www.anaconda.com/) installed on your system, if you can simply run the `install_script.sh` in the _Avalanche_ home directory. The script takes 2 arguments: `--python` and `--cuda_version`.
34
-
35
-
`--python` can take the values \[3.6, 3.7, 3.8\], default 3.8.
36
-
`--cuda_version` can take the values \[9.2, 10.1, 10.2, 11.0, none\], default none.
31
+
1. Install the package with pip.
32
+
2.[Install Pytorch + TorchVision](https://pytorch.org/)\(follow the instructions on the website to use pip\)
37
33
38
-
For example:
34
+
Step 1. can be done with the following line of code:
You can test your installation by running the `examples/test_install.py` script. Make sure to include avalanche into your **$PYTHONPATH** if you are running examples with the command line interface.
40
+
That's it. now we have _Avalanche_ up and running and we can start using it!
41
+
42
+
## 🐍 Install Avalanche with Anaconda
45
43
46
-
### On Windows or Mac OS
44
+
This is the **safest option** since it allows you to build an isolated environment for your Avalanche experiments. This means that you'll be able to _pin particular versions_ of your dependencies that may differ from the ones you want to maintain in the rest of your system. This will in turn increase reproducibility of any experiment you may produce.
47
45
48
-
Assuming you have Anaconda installed on your system, you can follow these simple steps:
46
+
Assuming you have **Anaconda \(or Miniconda\)installed** on your system, you can follow these simple steps:
49
47
50
48
1. Install the `avalanche.yml` environment and activate it.
51
49
2.[Install Pytorch + TorchVision](https://pytorch.org/)\(follow the instructions on the website to use conda\)
@@ -67,47 +65,20 @@ conda activate avalanche-env
67
65
# Istall Pytorch with Conda (instructions here: https://pytorch.org/)
68
66
69
67
# Step 3
70
-
conda env update --file environment-dev.yml
71
-
68
+
conda env update --file environment.yml
72
69
```
73
70
74
-
You can test your installation by running the `examples/test_install.py` script. Make sure to include avalanche into your **$PYTHONPATH** if you are running examples with the command line interface.
75
-
76
-
## 📦 Installing Avalanche with Pip
77
-
78
-
Within an Anaconda environment or not you can install _Avalanche_ also with Pip with the following steps:
79
-
80
-
1. Install the package with pip.
81
-
2.[Install Pytorch + TorchVision](https://pytorch.org/)\(follow the instructions on the website to use pip\)
82
-
83
-
Step 1. can be done with the following line of code:
On **Linux**, alternatively, you can simply run the `install_environment.sh` in the _Avalanche_ home directory. The script takes 2 arguments: `--python` and `--cuda_version`. Check `--help` for details.
73
+
{% endhint %}
88
74
89
-
That's it. now we have _Avalanche_ up and running and we can start using it!
75
+
You can test your installation by running the `examples/test_install.py` script. Make sure to include avalanche into your **$PYTHONPATH** if you are running examples with the command line interface.
90
76
91
77
## 💻 Developer Mode Install
92
78
93
-
If you want to expand _Avalanche_ and help us improve it \(see the "[_From Zero to Hero_](../from-zero-to-hero-tutorial/2.-benchmarks.md)" Tutorial\). In this case we suggest to create an environment in _**developer-mode**_ as follows.
94
-
95
-
### **On Linux**
96
-
97
-
Assuming you have [Anaconda](https://www.anaconda.com/) installed on your system, if you can simply run the `install_script_dev.sh` in the _Avalanche_ home directory. The script takes 2 arguments: `--python` and `--cuda_version`.
98
-
99
-
`--python` can take the values \[3.6, 3.7, 3.8\], default 3.8.
100
-
`--cuda_version` can take the values \[9.2, 10.1, 10.2, 11.0, none\], default none.
79
+
If you want to expand _Avalanche_ and help us improve it \(see the "[_From Zero to Hero_](../from-zero-to-hero-tutorial/2.-benchmarks.md)" Tutorial\). In this case we suggest to create an environment in _**developer-mode**_ as follows \(just a couple of more dependencies will be installed\).
You can test your installation by running the `examples/test_install.py` script. Make sure to include avalanche into your **$PYTHONPATH** if you are running examples with the command line interface.
107
-
108
-
### **On Windows and Mac OS**
109
-
110
-
Assuming you have Anaconda installed on your system, you can follow these simple steps:
81
+
Assuming you have **Anaconda \(or Miniconda\) installed** on your system, you can follow these simple steps:
111
82
112
83
1. Install the `avalanche-dev.yml` environment and activate it.
113
84
2.[Install Pytorch + TorchVision](https://pytorch.org/)\(follow the instructions on the website to use conda\).
# Istall Pytorch with Conda (instructions here: https://pytorch.org/)
130
101
131
102
# Step 3
132
-
conda env update --file environment.yml
133
-
103
+
conda env update --file environment-dev.yml
134
104
```
135
105
106
+
{% hint style="info" %}
107
+
On **Linux**, alternatively, you can simply run the `install_environment_dev.sh` in the _Avalanche_ home directory. The script takes 2 arguments: `--python` and `--cuda_version`. Check `--help` for details.
108
+
{% endhint %}
109
+
136
110
You can test your installation by running the `examples/test_install.py` script. Make sure to include avalanche into your **$PYTHONPATH** if you are running examples with the command line interface.
137
111
138
112
That's it. now we have _Avalanche_ up and running and we can start contribute to it!
0 commit comments