Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Solve a Python problem with Anaconda
Update 03/10/2026
This guide will help you if, for example, you want to deploy a package like pymysql and it requires a Python version higher than the one provided by default on your hosting.
Preamble
- Anaconda is a free and open-source distribution of the programming languages Python and R. It aims to simplify package management and deployment.
- It is recommended to use Miniconda (a lightweight version of conda). It installs in your user space, avoiding any conflict with the system Python and not requiring administrator rights.
- Familiarize yourself with the official documentation.
- If necessary, local partners referenced by Infomaniak can handle these procedures: launch a free call for tenders; they take care of everything — also discover the role of the host.
1. Download the installer
For example, the 64-bit Linux version for Python 3.11.
user@server:~$ wget https://repo.anaconda.com/miniconda/Miniconda3-py311_23.10.0-1-Linux-x86_64.sh
--2024-03-10 12:00:00-- https://repo.anaconda.com/miniconda/Miniconda3-py311_23.10.0-1-Linux-x86_64.sh
Resolving repo.anaconda.com... 104.16.131.3, 104.16.130.3
Connecting to repo.anaconda.com|104.16.131.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 72787200 (69M) [application/x-sh]
Saving to: ‘Miniconda3-py311_23.10.0-1-Linux-x86_64.sh’
Miniconda3-py311_23.10.0-1-Linux-x86_64.sh 100% [===================>] 69.42M --.-KB/s in 0.3s
2. Check the integrity (SHA256 Hash)
user@server:~$ sha256sum Miniconda3-py311_23.10.0-1-Linux-x86_64.sh
6c714a33ea348303f909194246990422e698889417d74b9714856b3e9a7e6c3a Miniconda3-py311_23.10.0-1-Linux-x86_64.sh
3. Start the installation
The -b argument allows for a silent installation. By default, Miniconda will install in ~/miniconda3.
user@server:~$ bash Miniconda3-py311_23.10.0-1-Linux-x86_64.sh -b
PREFIX=/home/clients/your_client_hash/miniconda3
Unpacking payload ...
Collecting package metadata (current_repodata.json): done
Solving environment: done
Executing transaction: done
installation finished.
4. Initialize and activate Conda
To use conda immediately and with each SSH connection:
user@server:~$ ~/miniconda3/bin/conda init bash
no change /home/clients/your_client_hash/miniconda3/condabin/conda
...
modified /home/clients/your_client_hash/.bashrc
user@server:~$ source ~/.bashrc
5. Install a package (example: pymysql)
Once activated, the (base) prefix appears before your command prompt. You can then install your tools without sudo or --user.
(base) user@server:~$ python -V
Python 3.11.5
(base) user@server:~$ pip install pymysql
Collecting pymysql
Downloading PyMySQL-1.1.0-py3-none-any.whl (44 kB)
Installing collected packages: pymysql
Successfully installed pymysql-1.1.0Link to this FAQ:
Has this FAQ been helpful?