Do you support virtualenv and pip for Python?
Ce contenu n’est pas encore disponible dans votre langue.
Yes. You can use virtualenv and pip for Python projects on Ruachost hosting.
- virtualenv creates a separate Python environment for each project, so each one can have its own packages and versions.
- pip installs Python packages, such as Flask, Django or Requests, into that environment.
The easiest way: Python selector
Section titled “The easiest way: Python selector”The Setup Python App tool in cPanel creates a virtual environment for you:
- Log in to cPanel.
- Open Setup Python App and click Create Application.
- Choose the Python version and your application folder, then click Create.
- Copy the command shown at the top of the page. It activates your app’s virtual environment over SSH.
- Connect with SSH, paste the command, then install packages with pip:
pip install -r requirements.txtYou can also list packages in Configuration files on the app’s page and click Run Pip Install.
Related articles
Section titled “Related articles”Cette page vous a-t-elle aidé ?
Merci pour votre retour.