Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Troubleshooting a Python issue using Anaconda
Update 08/06/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 default version offered on your hosting.
Introduction
- Anaconda is a free and open-source distribution of the Python and R programming languages; 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 conflicts with the system Python and not requiring administrator privileges.
- Refer to the official documentation.
1. Download the installer
For example, the Linux 64-bit version for Python 3.11.
2. Verify integrity (SHA256 hash)
2. Contrôler l'intégrité (Hash SHA256)
user@server:~$ sha256sum Miniconda3-py311_23.10.0-1-Linux-x86_64.sh 6c714a33ea348303f909194246990422e698889417d74b9714856b3e9a7e6c3a Miniconda3-py311_23.10.0-1-Linux-x86_64.sh3. Start the installation
3. Lancer l'installation
The -b argument enables a silent installation. By default, Miniconda will be installed 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 prefix (base) appears before your command prompt. You can then install your tools without using 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: https://faq.infomaniak.com/1362
Has this FAQ been helpful?